Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7910 in orxonox.OLD for branches/gui/src/lib/event


Ignore:
Timestamp:
May 27, 2006, 5:23:04 PM (19 years ago)
Author:
bensch
Message:

more gui-stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/event/event_handler.cc

    r7905 r7910  
    230230void EventHandler::unsubscribe(EventListener* el, elState state)
    231231{
    232   if( el == NULL || state >= ES_NUMBER)
    233     return;
     232  assert( el != NULL && state < ES_NUMBER);
    234233  if( state == ES_ALL)
    235234  {
     
    419418
    420419  /// setting a temporary state in case of an EventListener's process changes the state.
     420  printf("%d\n", this->listeners[state][event.type].size());
    421421  for (unsigned int i = 0; i < this->listeners[state][event.type].size(); i++)
    422422  {
    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");
    426426    this->listeners[state][event.type][i]->process(event);
    427427  }
Note: See TracChangeset for help on using the changeset viewer.