18 #ifndef ECONTROLMANAGER_H 19 #define ECONTROLMANAGER_H 21 #include <csutil/csstring.h> 22 #include <iutil/event.h> 23 #include <csutil/array.h> 29 #define CMD_DECLARATION(func) static void func(eControlManager *obj, bool down) 31 struct iObjectRegistry;
79 void ExecuteKeyCommand(csKeyEventData &key);
87 void Map(
const char *action, csKeyEventData &data);
95 size_t StringToAction(
const char *name);
103 csKeyEventData csKey;
106 csArray<ActionKeyMap*> keyMap;
109 iObjectRegistry* object_reg;
bool HandleEvent(iEvent &event)
Handles the given even if it is a key even.
void ClearKeyMap()
Removes all current key mappings.
bool LoadKeyMap(const char *filename)
Imports key mappings from the given files.
eControlManager(iObjectRegistry *object_reg)
Initialise the eControlManager with an object registry.
CMD_DECLARATION(HandleForward)