22 #ifndef TWINE_KEYBOARD_H 23 #define TWINE_KEYBOARD_H 25 #include "common/events.h" 26 #include "common/keyboard.h" 27 #include "common/scummsys.h" 28 #include "common/util.h" 29 #include "common/rect.h" 35 extern const char *mainKeyMapId;
36 extern const char *uiKeyMapId;
37 extern const char *cutsceneKeyMapId;
38 extern const char *holomapKeyMapId;
40 enum TwinEActionType {
45 IncreaseCellingGridIndex,
46 DecreaseCellingGridIndex,
47 DebugGridCameraPressUp,
48 DebugGridCameraPressDown,
49 DebugGridCameraPressLeft,
50 DebugGridCameraPressRight,
51 DebugPlaceActorAtCenterOfScreen,
55 QuickBehaviourAthletic,
56 QuickBehaviourAggressive,
57 QuickBehaviourDiscreet,
58 ChangeBehaviourNormal,
59 ChangeBehaviourAthletic,
60 ChangeBehaviourAggressive,
61 ChangeBehaviourDiscreet,
62 ExecuteBehaviourAction,
65 RecenterScreenOnTwinsen,
118 uint8 _actionStates[TwinEActionType::Max]{
false};
126 void enableKeyMap(
const char *
id);
127 bool enableAdditionalKeyMap(
const char *
id,
bool enable);
138 bool isActionActive(TwinEActionType actionType,
bool onlyFirstTime =
true)
const;
146 bool toggleActionIfActive(TwinEActionType actionType);
147 void resetActionStates();
149 bool toggleAbortAction();
151 bool isQuickBehaviourActionActive()
const;
152 bool isMoveOrTurnActionActive()
const;
153 bool isHeroActionActive()
const;
154 bool resetHeroActions();
166 void processCustomEngineEventStart(
const Common::Event& event);
167 void processCustomEngineEventEnd(
const Common::Event& event);
171 return _currentKeyMap;
Activates the given key map id that is registered in the meta engine.
Definition: input.h:103
Definition: achievements_tables.h:27