Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4405 in orxonox.OLD for orxonox/trunk/src/util/event


Ignore:
Timestamp:
May 30, 2005, 6:36:43 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: event_handler subscribe functionality improved

Location:
orxonox/trunk/src/util/event
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/event/event_handler.cc

    r4398 r4405  
    8080}
    8181
    82 void EventHandler::subscribeListener(EventListener* el, elState state, int eventType)
     82void EventHandler::subscribe(EventListener* el, elState state, int eventType)
    8383{
    8484  if( likely(this->listeners[state][eventType] == NULL))
     
    8989
    9090
    91 void EventHandler::unsubscribeListener(int eventType, elState state)
     91void EventHandler::unsubscribe(int eventType, elState state)
    9292{
    9393  this->listeners[state][eventType] = NULL;
  • orxonox/trunk/src/util/event/event_handler.h

    r4388 r4405  
    99
    1010#include "base_object.h"
     11#include "key_mapper.h"
    1112#include "event_def.h"
    1213
     
    2324  void setState(elState state);
    2425
    25   void subscribeListener(EventListener* el, elState state, int eventType);
    26   void unsubscribeListener(int eventType, elState state);
     26  void subscribe(EventListener* el, elState state, int eventType);
     27  void unsubscribe(int eventType, elState state);
    2728  void flush(elState state);
    2829
  • orxonox/trunk/src/util/event/key_mapper.h

    r4403 r4405  
    1414
    1515
    16 //! Key aliasing structure
    17 /**
    18    This structure contains the key aliasing information, e.g. the command strings that
    19    have been bound to the keys.
    20 */
    21 typedef struct
    22 {
    23   char keys[N_STD_KEYS][CMD_LENGHT];
    24   char buttons[N_BUTTONS][CMD_LENGHT];
    25 } KeyBindings;
     16
    2617
    2718typedef struct orxKeyMapping
Note: See TracChangeset for help on using the changeset viewer.