Changeset 4352 in orxonox.OLD for orxonox/trunk/src/util/event/event_handler.h
- Timestamp:
- May 28, 2005, 12:56:01 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event_handler.h
r4350 r4352 9 9 10 10 #include "base_object.h" 11 #include "event_def.h" 11 12 12 13 class EventListener; 13 14 template<class T> class tList; 15 16 17 #define N_STD_KEYS SDLK_LAST 18 #define N_BUTTONS 6 19 #define DEFAULT_KEYBIND_FILE "~/.orxonox/orxonox.conf" 14 20 15 21 typedef enum elState … … 21 27 ES_NUMBER, 22 28 }; 29 30 //! Key aliasing structure 31 /** 32 This structure contains the key aliasing information, e.g. the command strings that 33 have been bound to the keys. 34 */ 35 typedef struct 36 { 37 char keys[N_STD_KEYS][CMD_LENGHT]; 38 char buttons[N_BUTTONS][CMD_LENGHT]; 39 } KeyBindings; 23 40 24 41 … … 39 56 40 57 void tick(float t); 58 void process(); 41 59 42 60 private: 43 61 EventHandler(void); 62 44 63 static EventHandler* singletonRef; 45 64 46 EventListener** listeners; //!< a list of registered listeners 65 KeyBindings* keyAliases; 66 EventListener*** listeners; //!< a list of registered listeners 47 67 48 68 };
Note: See TracChangeset
for help on using the changeset viewer.