Changeset 4364 in orxonox.OLD for orxonox/trunk/src/util/event/event_handler.cc
- Timestamp:
- May 28, 2005, 3:14:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event_handler.cc
r4363 r4364 198 198 } 199 199 200 void EventHandler::flush() 201 { 202 for(int i = 0; i < ES_NUMBER; ++i) 200 void EventHandler::flush(elState state) 201 { 202 if( state == ES_ALL) 203 { 204 for(int i = 0; i < ES_NUMBER; ++i) 205 { 206 for(int j = 0; j < SDLK_LAST; ++j) 207 { 208 this->listeners[i][j] = NULL; 209 } 210 } 211 } 212 else 203 213 { 204 214 for(int j = 0; j < SDLK_LAST; ++j) 205 215 { 206 this->listeners[ i][j] = NULL;216 this->listeners[state][j] = NULL; 207 217 } 208 218 } … … 214 224 { 215 225 SDL_Event event; 216 //Command cmd;217 226 Event ev; 218 227 EventListener* listener; … … 270 279 } 271 280 281 /* small debug routine: shows alle events dispatched by the event handler */ 282 PRINT(0)("\n==========================| EventHandler::Process () |===\n"); 283 PRINT(0)("= Got Event nr%i\n, for state %i", event.type, this->state); 284 PRINT(0)("=======================================================\n"); 285 272 286 listener = this->listeners[this->state][event.key.keysym.sym]; 273 287 //if( listener != NULL)
Note: See TracChangeset
for help on using the changeset viewer.