Changeset 7910 in orxonox.OLD for branches/gui/src/lib/event
- Timestamp:
- May 27, 2006, 5:23:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/event/event_handler.cc
r7905 r7910 230 230 void EventHandler::unsubscribe(EventListener* el, elState state) 231 231 { 232 if( el == NULL || state >= ES_NUMBER) 233 return; 232 assert( el != NULL && state < ES_NUMBER); 234 233 if( state == ES_ALL) 235 234 { … … 419 418 420 419 /// setting a temporary state in case of an EventListener's process changes the state. 420 printf("%d\n", this->listeners[state][event.type].size()); 421 421 for (unsigned int i = 0; i < this->listeners[state][event.type].size(); i++) 422 422 { 423 PRINT( 4)("= Event dispatcher msg: This event has been consumed\n");424 PRINT( 4)("= Got Event nr %i, for state %i %s::%s\n", event.type, state, this->listeners[state][event.type][i]->getClassName(), this->listeners[state][event.type][i]->getName());425 PRINT( 4)("=======================================================\n");423 PRINT(0)("= Event dispatcher msg: This event has been consumed\n"); 424 PRINT(0)("= Got Event nr %i, for state %i (%d registered) to %s::%s(%p)\n", event.type, i, state, this->listeners[state][event.type][i]->getClassName(), this->listeners[state][event.type][i]->getName(), this->listeners[state][event.type][i]); 425 PRINT(0)("=======================================================\n"); 426 426 this->listeners[state][event.type][i]->process(event); 427 427 }
Note: See TracChangeset
for help on using the changeset viewer.