25 #include "shared/ac/keycode.h" 26 #include "common/array.h" 27 #include "common/queue.h" 28 #include "common/events.h" 38 int16 _joystickAxis[32];
39 bool _joystickButton[32];
40 byte _keyModifierFlags = 0;
42 bool isModifierKey(
const Common::KeyCode &keycode)
const;
43 bool isExtendedKey(
const Common::KeyCode &keycode)
const;
55 static AGS3::eAGSKeyCode scummvm_key_to_ags_key(
const Common::Event &event,
int &ags_mod,
bool old_keyhandle);
70 return !_keyEvents.empty();
77 return _keyEvents.pop();
84 return _keyModifierFlags;
108 bool isKeyPressed(AGS3::eAGSKeyCode key,
bool poll =
true);
111 _pendingEvents.clear();
127 return _joystickAxis[axis];
135 return _joystickButton[button];
143 bool result = _joystickButton[button];
144 _joystickButton[button] =
false;
Definition: achievements_tables.h:27
Common::Event readEvent()
int16 getJoystickAxis(byte axis) const
Definition: events.h:125
bool isKeyPressed(AGS3::eAGSKeyCode key, bool poll=true)
bool getJoystickButtonOnce(byte button)
Definition: events.h:141
bool getJoystickButton(byte button) const
Definition: events.h:133
bool keyEventPending() const
Definition: events.h:69
void warpMouse(const Common::Point &newPos)
Common::Event getPendingKeyEvent()
Definition: events.h:76
Common::Point getMousePos() const
Definition: events.h:118
void pushKeyboardEvent(const Common::Event &evt)
Definition: events.h:91
uint getModifierFlags() const
Definition: events.h:83
static bool ags_key_to_scancode(AGS3::eAGSKeyCode key, Common::KeyCode(&kc)[3])