Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5285 in orxonox.OLD for trunk/src/lib/event/event_handler.cc


Ignore:
Timestamp:
Oct 6, 2005, 8:31:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer quit-modi
TextEngine is now deleted by GraphicsEngine
trying to fix errors in the Element2D deletion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_handler.cc

    r5237 r5285  
    3434EventHandler::EventHandler ()
    3535{
     36  this->setClassID(CL_EVENT_HANDLER, "EventHandler");
     37  this->setName("EventHandler");
     38
    3639  SDL_InitSubSystem(SDL_INIT_JOYSTICK);
    3740  SDL_InitSubSystem(SDL_INIT_EVENTTHREAD);
    3841//  SDL_SetEventFilter(EventHandler::eventFilter);
    3942
    40   this->setClassID(CL_EVENT_HANDLER, "EventHandler");
    4143
    4244  /* now initialize them all to zero */
     
    4951    }
    5052  this->state = ES_GAME;
     53  this->keyMapper = NULL;
    5154}
    5255
     
    7073      if( this->listeners[i][j] != NULL)
    7174      {
    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());
    7376      }
    7477    }
     
    8487/**
    8588 *  initializes the event handler
    86 
    87    this has to be called before the use of the event handler
     89 *
     90 * this has to be called before the use of the event handler
    8891*/
    8992void EventHandler::init(IniParser* iniParser)
     
    142145
    143146/**
    144  *  unsubscribe all events from a specific listener
     147 * unsubscribe all events from a specific listener
    145148 * @param el: the listener that wants to unsubscribe itself
    146149 * @param state: the state in which the events shall be unsubscribed
     
    174177
    175178/**
    176  *  flush all registered events
     179 * flush all registered events
    177180 * @param state: a specific state
    178181*/
Note: See TracChangeset for help on using the changeset viewer.