Changeset 9876 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Oct 3, 2006, 2:38:31 PM (18 years ago)
- Location:
- trunk/src/lib/event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_def.h
r8148 r9876 8 8 9 9 #ifdef HAVE_SDL_H 10 #include "SDL_keysym.h"10 #include "SDL_keysym.h" 11 11 #else 12 #include "SDL/SDL_keysym.h"12 #include "SDL/SDL_keysym.h" 13 13 #endif 14 14 15 16 15 //! these are the extended event types, that are not included in SDL_keysym 17 typedef enum extEventTyes 18 { 16 typedef enum { 19 17 EV_MOUSE_BUTTON_LEFT = SDLK_LAST + 1, 20 18 EV_MOUSE_BUTTON_MIDDLE, … … 37 35 38 36 EV_NUMBER 39 } ;37 } extEventTyes; 40 38 41 39 42 40 //! this is an enumeration of all states of the event_handler/game 43 typedef enum elState41 typedef enum 44 42 { 45 43 ES_NULL = -1, … … 48 46 ES_MENU = 2, //!< orxonox menu state 49 47 ES_SHELL = 3, //!< if we are in shell Modus 50 48 51 49 ES_ALL = 4, //!< you want to register events for all states 52 50 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; 58 53 59 54 #endif /* _EVENT_DEF_H */ -
trunk/src/lib/event/event_handler.h
r9869 r9876 71 71 static EventHandler* singletonRef; //!< the singleton reference 72 72 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. 74 74 elState state; //!< the state of the event handlder. 75 75 std::stack<short> stateStack; //!< a stack for the States we are in. 76 76 KeyMapper keyMapper; //!< reference to the key mapper. 77 77 78 bool bUNICODE[ES _NUMBER]; //!< If unicode should be enabled.78 bool bUNICODE[ESTATE_NUMBER]; //!< If unicode should be enabled. 79 79 bool eventsGrabbed; //!< If the events should be grabbed 80 80 -
trunk/src/lib/event/event_listener.h
r9869 r9876 8 8 9 9 #include "base_object.h" 10 #include "event_def.h" 10 11 #include "event.h" 11 #include "event_def.h"12 12 13 13 //! A class for event listener
Note: See TracChangeset
for help on using the changeset viewer.