25 #include "engines/nancy/commontypes.h" 27 #include "common/rect.h" 28 #include "common/keyboard.h" 32 typedef class Array<Keymap *> KeymapArray;
42 enum InputType : uint16 {
43 kLeftMouseButtonDown = 1 << 0,
44 kLeftMouseButtonHeld = 1 << 1,
45 kLeftMouseButtonUp = 1 << 2,
46 kRightMouseButtonDown = 1 << 3,
47 kRightMouseButtonHeld = 1 << 4,
48 kRightMouseButtonUp = 1 << 5,
53 kMoveFastModifier = 1 << 10,
54 kOpenMainMenu = 1 << 11,
55 kRaycastMap = 1 << 12,
57 kLeftMouseButton = kLeftMouseButtonDown | kLeftMouseButtonHeld | kLeftMouseButtonUp,
58 kRightMouseButton = kRightMouseButtonDown | kRightMouseButtonHeld | kRightMouseButtonUp
65 void eatMouseInput() { mousePos.
x = -1; input &= ~(kLeftMouseButton | kRightMouseButton); }
77 kNancyActionMoveRight,
79 kNancyActionLeftClick,
80 kNancyActionRightClick,
81 kNancyActionOpenMainMenu,
82 kNancyActionShowRaycastMap
89 _inputBeginState(NancyState::kNone) {}
94 void forceCleanInput();
95 void setMouseInputEnabled(
bool enabled) { _mouseEnabled = enabled; }
97 void setVKEnabled(
bool enabled);
101 static const char *_mazeKeymapID;
107 NancyState::NancyState _inputBeginState;
112 #endif // NANCY_INPUT_H
Definition: algorithm.h:29
int16 x
Definition: rect.h:46
Definition: actionmanager.h:32