46 : primary(p), secondary(s) {}
75 void EventProcess(
Event &event);
85 bool GetKmodState(
int kmod)
const;
91 bool GetMouseButtonState(
int index)
const;
94 void ResetKeyStates();
101 void SetDefaultInputBindings();
117 void SetJoystickDeadzone(
float zone);
118 float GetJoystickDeadzone();
126 void SaveKeyBindings();
127 void LoadKeyBindings();
131 InputSlot SearchKeyById(std::string name);
136 std::string GetKeysString(
InputSlot slot);
141 unsigned int m_kmodState;
143 bool m_keyPresses[INPUT_SLOT_MAX];
149 unsigned int m_mouseButtonsState;
163 float m_joystickDeadzone;
165 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:76
const unsigned int KEY_INVALID
Special value for invalid key bindings.
Definition: key.h:69
Definition: singleton.h:30
2D point
Definition: point.h:50
Binding for joystick axis.
Definition: input.h:53
Key-related macros and enums.
Event types, structs and event queue.
3D (3x1) vector
Definition: vector.h:53
2D Point with integer coords
Definition: intpoint.h:39
Event sent by system, interface or game.
Definition: event.h:709
JoyAxisSlot
Slots for joystick axes inputs.
Definition: key.h:113