Changeset 5309 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Oct 8, 2005, 12:47:00 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.h
r5237 r5309 35 35 void unsubscribe(EventListener* el, elState state = ES_ALL); 36 36 void flush(elState state); 37 /** @returns true, if the @param state has @param eventType subscribed?? */ 38 inline bool isSubscribed(elState state, int eventType) { return(listeners[state][eventType] == NULL)?false:true; }; 37 39 38 40 void process(); -
trunk/src/lib/shell/shell_input.cc
r5306 r5309 58 58 EventHandler* evh = EventHandler::getInstance(); 59 59 for (int i = 1; i < SDLK_LAST; i++) 60 evh->subscribe(this, ES_SHELL, i); 61 60 { 61 if (!evh->isSubscribed(ES_SHELL, i)) 62 evh->subscribe(this, ES_SHELL, i); 63 } 62 64 this->completion = new ShellCompletion(this); 63 65 }
Note: See TracChangeset
for help on using the changeset viewer.