Changeset 5210 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Sep 21, 2005, 12:01:25 AM (19 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r5093 r5210 36 36 this->setClassID(CL_EVENT_HANDLER, "EventHandler"); 37 37 38 this->listeners = new EventListener**[ES_NUMBER];39 for(int i = 0; i < ES_NUMBER; ++i)40 this->listeners[i] = new EventListener*[EV_NUMBER];41 42 38 /* now initialize them all to zero */ 43 for(int i = 0; i < ES_NUMBER; ++i)44 { 45 for(int j = 0; j < EV_NUMBER; ++j)39 for(int i = 0; i < ES_NUMBER; i++) 40 { 41 for(int j = 0; j < EV_NUMBER; j++) 46 42 { 47 43 this->listeners[i][j] = NULL; -
trunk/src/lib/event/event_handler.h
r5093 r5210 45 45 46 46 private: 47 static EventHandler* singletonRef; //!< the singleton reference47 static EventHandler* singletonRef; //!< the singleton reference 48 48 49 EventListener* ** listeners;//!< a list of registered listeners50 elState state; //!< the state of the event handlder51 KeyMapper* keyMapper; //!< reference to the key mapper49 EventListener* listeners[ES_NUMBER][EV_NUMBER]; //!< a list of registered listeners 50 elState state; //!< the state of the event handlder 51 KeyMapper* keyMapper; //!< reference to the key mapper 52 52 }; 53 53
Note: See TracChangeset
for help on using the changeset viewer.