22 #ifndef COMMON_KEYMAP_H 23 #define COMMON_KEYMAP_H 25 #include "common/scummsys.h" 27 #include "backends/keymapper/hardware-input.h" 29 #include "common/config-manager.h" 30 #include "common/func.h" 31 #include "common/hashmap.h" 32 #include "common/hash-ptr.h" 33 #include "common/list.h" 34 #include "common/str-array.h" 38 const char *
const kStandardActionsKeymapName =
"standard-actions";
43 class HardwareInputSet;
44 class KeymapperDefaultBindings;
58 hash = 31 * hash + x.
type;
102 void unregisterMapping(
Action *action);
108 void resetMapping(
Action *action);
121 KeymapMatch getMappedActions(
const Event &event, ActionArray &actions)
const;
130 void addAction(
Action *action);
157 const String &getId()
const {
return _id; }
158 const U32String &getDescription()
const {
return _description; }
159 KeymapType getType()
const {
return _type; }
165 void setEnabled(
bool enabled) { _enabled = enabled; }
174 const Action *findAction(
const char *
id)
const;
187 ActionArray _actions;
188 HardwareActionMap _hwActionMap;
199 #endif // #ifndef COMMON_KEYMAP_H
byte flags
Definition: keyboard.h:323
bool isEnabled() const
Definition: keymap.h:164
static Array< Keymap * > arrayOf(Keymap *keymap)
Definition: keymap.h:168
KeyCode keycode
Definition: keyboard.h:299
const ActionArray & getActions() const
Definition: keymap.h:135
Definition: algorithm.h:29
Definition: keymapper-defaults.h:32
Definition: config-manager.h:59