Changeset 5285 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Oct 6, 2005, 8:31:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r5237 r5285 34 34 EventHandler::EventHandler () 35 35 { 36 this->setClassID(CL_EVENT_HANDLER, "EventHandler"); 37 this->setName("EventHandler"); 38 36 39 SDL_InitSubSystem(SDL_INIT_JOYSTICK); 37 40 SDL_InitSubSystem(SDL_INIT_EVENTTHREAD); 38 41 // SDL_SetEventFilter(EventHandler::eventFilter); 39 42 40 this->setClassID(CL_EVENT_HANDLER, "EventHandler");41 43 42 44 /* now initialize them all to zero */ … … 49 51 } 50 52 this->state = ES_GAME; 53 this->keyMapper = NULL; 51 54 } 52 55 … … 70 73 if( this->listeners[i][j] != NULL) 71 74 { 72 PRINTF(2)("forgot to unsubscribe an EventListener %s!\n");//, this->listeners[i][j]->getName());75 PRINTF(2)("forgot to unsubscribe an EventListener!\n");// %s!\n", this->listeners[i][j]->getName()); 73 76 } 74 77 } … … 84 87 /** 85 88 * initializes the event handler 86 87 89 * 90 * this has to be called before the use of the event handler 88 91 */ 89 92 void EventHandler::init(IniParser* iniParser) … … 142 145 143 146 /** 144 * 147 * unsubscribe all events from a specific listener 145 148 * @param el: the listener that wants to unsubscribe itself 146 149 * @param state: the state in which the events shall be unsubscribed … … 174 177 175 178 /** 176 * 179 * flush all registered events 177 180 * @param state: a specific state 178 181 */
Note: See TracChangeset
for help on using the changeset viewer.