Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 28, 2005, 4:16:27 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: started implementation of key mapper

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

Legend:

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

    r4366 r4368  
    4848 private:
    4949  EventHandler(void);
    50 
    51   static EventHandler* singletonRef;
    52 
    53 
    54  public:
    55   /* i will make a special class for the key mappings incl ini parsing! TEMP only: */
    56   static int PEV_UP;
    57   static int PEV_DOWN;
    58   static int PEV_LEFT;
    59   static int PEV_RIGHT;
    60  
    61   static int PEV_STRAFE_LEFT;
    62   static int PEV_STRAFE_RIGHT;
    63 
    64   static int PEV_FIRE1;
    65   static int PEV_FIRE2;
    66 
    67   static int PEV_VIEW1;
    68   static int PEV_VIEW2;
    69   static int PEV_VIEW3;
    70   static int PEV_VIEW4;
     50 
    7151
    7252 private:
     53  static EventHandler* singletonRef;
    7354  KeyBindings* keyAliases;
    7455  EventListener*** listeners;                         //!< a list of registered listeners
  • orxonox/trunk/src/util/event/key_mapper.h

    r4367 r4368  
    2020  virtual ~KeyMapper();
    2121
     22  void loadKeyBindings(const char* fileName);
     23
     24 private:
     25  int* nameToIndex (char* name);
     26
     27 public:
     28  static int PEV_UP;
     29  static int PEV_DOWN;
     30  static int PEV_LEFT;
     31  static int PEV_RIGHT;
     32 
     33  static int PEV_STRAFE_LEFT;
     34  static int PEV_STRAFE_RIGHT;
     35 
     36  static int PEV_FIRE1;
     37  static int PEV_FIRE2;
     38
     39  static int PEV_VIEW1;
     40  static int PEV_VIEW2;
     41  static int PEV_VIEW3;
     42  static int PEV_VIEW4;
     43
     44 private:
     45  KeyBindings* keyAliases;
    2246};
    2347
Note: See TracChangeset for help on using the changeset viewer.