Last change
on this file since 8538 was
8148,
checked in by bensch, 18 years ago
|
trunk: output of EventListener Nicer
|
File size:
1.2 KB
|
Rev | Line | |
---|
[4662] | 1 | /*! |
---|
[4873] | 2 | * @file event_def.h |
---|
| 3 | * some central definitions |
---|
[4353] | 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _EVENT_DEF_H |
---|
| 7 | #define _EVENT_DEF_H |
---|
| 8 | |
---|
[4662] | 9 | #ifdef HAVE_SDL_H |
---|
[4363] | 10 | #include "SDL_keysym.h" |
---|
[4662] | 11 | #else |
---|
| 12 | #include "SDL/SDL_keysym.h" |
---|
| 13 | #endif |
---|
[4363] | 14 | |
---|
[4366] | 15 | |
---|
[4450] | 16 | //! these are the extended event types, that are not included in SDL_keysym |
---|
[4363] | 17 | typedef enum extEventTyes |
---|
[4780] | 18 | { |
---|
[5477] | 19 | EV_MOUSE_BUTTON_LEFT = SDLK_LAST + 1, |
---|
[4780] | 20 | EV_MOUSE_BUTTON_MIDDLE, |
---|
| 21 | EV_MOUSE_BUTTON_RIGHT, |
---|
| 22 | EV_MOUSE_BUTTON_WHEELUP, |
---|
| 23 | EV_MOUSE_BUTTON_WHEELDOWN, |
---|
[5069] | 24 | EV_MOUSE_MOTION, |
---|
[4780] | 25 | EV_JOY_AXIS_MOTION, |
---|
| 26 | EV_JOY_BALL_MOTION, |
---|
| 27 | EV_JOY_HAT_MOTION, |
---|
| 28 | EV_JOY_BUTTON, |
---|
[4365] | 29 | |
---|
[7919] | 30 | EV_WINDOW_FOCUS, |
---|
[5069] | 31 | EV_VIDEO_RESIZE, |
---|
[4782] | 32 | |
---|
[7919] | 33 | EV_LEAVE_STATE, |
---|
[5553] | 34 | EV_MAIN_QUIT, |
---|
| 35 | |
---|
[4780] | 36 | EV_UNKNOWN, |
---|
[4417] | 37 | |
---|
[5069] | 38 | EV_NUMBER |
---|
[4780] | 39 | }; |
---|
[4454] | 40 | |
---|
[4780] | 41 | |
---|
[4450] | 42 | //! this is an enumeration of all states of the event_handler/game |
---|
[4364] | 43 | typedef enum elState |
---|
[8148] | 44 | { |
---|
| 45 | ES_NULL = -1, |
---|
| 46 | ES_GAME = 0, //!< the state during the game plays |
---|
| 47 | ES_GAME_MENU = 1, //!< state when the menu is called during game |
---|
| 48 | ES_MENU = 2, //!< orxonox menu state |
---|
| 49 | ES_SHELL = 3, //!< if we are in shell Modus |
---|
[4363] | 50 | |
---|
[8148] | 51 | ES_ALL = 4, //!< you want to register events for all states |
---|
[4364] | 52 | |
---|
[8148] | 53 | ES_NUMBER = 5, //!< the number of states |
---|
| 54 | }; |
---|
[4364] | 55 | |
---|
| 56 | |
---|
[8148] | 57 | |
---|
| 58 | |
---|
[4353] | 59 | #endif /* _EVENT_DEF_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.