49 : primary(p), secondary(s) {}
78 void EventProcess(
Event &event);
88 bool GetMouseButtonState(
int index)
const;
91 void ResetKeyStates();
98 void SetDefaultInputBindings();
114 void SetJoystickDeadzone(
float zone);
115 float GetJoystickDeadzone();
123 void SaveKeyBindings();
124 void LoadKeyBindings();
133 std::string GetKeysString(
InputSlot slot);
138 bool m_keyPresses[INPUT_SLOT_MAX];
144 unsigned int m_mouseButtonsState;
160 float m_joystickDeadzone;
162 std::map<InputSlot, std::string> m_keyTable;
CSingleton base class for singletons.
InputSlot
Available slots for input bindings NOTE: When adding new values, remember to also update keyTable in ...
Definition: key.h:79
const unsigned int KEY_INVALID
Special value for invalid key bindings.
Definition: key.h:72
Point struct and related functions.
Definition: singleton.h:30
2D point
Definition: point.h:50
Binding for joystick axis.
Definition: input.h:56
Key-related macros and enums.
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:53
2D Point with integer coords
Definition: intpoint.h:41
Event sent by system, interface or game.
Definition: event.h:735
JoyAxisSlot
Slots for joystick axes inputs.
Definition: key.h:120