Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9876 in orxonox.OLD for trunk/src/lib/event


Ignore:
Timestamp:
Oct 3, 2006, 2:38:31 PM (18 years ago)
Author:
bensch
Message:

compiles better on Windows

Location:
trunk/src/lib/event
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_def.h

    r8148 r9876  
    88
    99#ifdef HAVE_SDL_H
    10 #include "SDL_keysym.h"
     10 #include "SDL_keysym.h"
    1111#else
    12 #include "SDL/SDL_keysym.h"
     12 #include "SDL/SDL_keysym.h"
    1313#endif
    1414
    15 
    1615//! these are the extended event types, that are not included in SDL_keysym
    17 typedef enum extEventTyes
    18 {
     16typedef enum {
    1917  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST + 1,
    2018  EV_MOUSE_BUTTON_MIDDLE,
     
    3735
    3836  EV_NUMBER
    39 };
     37} extEventTyes;
    4038
    4139
    4240//! this is an enumeration of all states of the event_handler/game
    43 typedef enum elState
     41typedef enum
    4442{
    4543  ES_NULL         = -1,
     
    4846  ES_MENU         = 2,       //!< orxonox menu state
    4947  ES_SHELL        = 3,       //!< if we are in shell Modus
    50 
     48 
    5149  ES_ALL          = 4,       //!< you want to register events for all states
    5250
    53   ES_NUMBER       = 5,       //!< the number of states
    54 };
    55 
    56 
    57 
     51  ESTATE_NUMBER   = 5        //!< the number of states < Namespace-problem in windows.
     52} elState;
    5853
    5954#endif /* _EVENT_DEF_H */
  • trunk/src/lib/event/event_handler.h

    r9869 r9876  
    7171  static EventHandler*         singletonRef;                    //!< the singleton reference
    7272
    73   std::vector<EventListener*>  listeners[ES_NUMBER][EV_NUMBER]; //!< a list of registered listeners.
     73  std::vector<EventListener*>  listeners[ESTATE_NUMBER][EV_NUMBER]; //!< a list of registered listeners.
    7474  elState                      state;                           //!< the state of the event handlder.
    7575  std::stack<short>            stateStack;                      //!< a stack for the States we are in.
    7676  KeyMapper                    keyMapper;                       //!< reference to the key mapper.
    7777
    78   bool                         bUNICODE[ES_NUMBER];             //!< If unicode should be enabled.
     78  bool                         bUNICODE[ESTATE_NUMBER];             //!< If unicode should be enabled.
    7979  bool                         eventsGrabbed;                   //!< If the events should be grabbed
    8080
  • trunk/src/lib/event/event_listener.h

    r9869 r9876  
    88
    99#include "base_object.h"
     10#include "event_def.h"
    1011#include "event.h"
    11 #include "event_def.h"
    1212
    1313//! A class for event listener
Note: See TracChangeset for help on using the changeset viewer.