|
Last change
on this file since 4585 was
4457,
checked in by patrick, 20 years ago
|
|
orxonox/trunk: moved util/event to lib/event
|
|
File size:
991 bytes
|
| Line | |
|---|
| 1 | /*! |
|---|
| 2 | \file event_def.h |
|---|
| 3 | \brief some central definitions |
|---|
| 4 | |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef _EVENT_DEF_H |
|---|
| 8 | #define _EVENT_DEF_H |
|---|
| 9 | |
|---|
| 10 | #include "SDL_keysym.h" |
|---|
| 11 | #include "stdincl.h" |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | //! these are the extended event types, that are not included in SDL_keysym |
|---|
| 15 | typedef enum extEventTyes |
|---|
| 16 | { |
|---|
| 17 | EV_MOUSE_BUTTON_LEFT = SDLK_LAST, |
|---|
| 18 | EV_MOUSE_BUTTON_MIDDLE, |
|---|
| 19 | EV_MOUSE_BUTTON_RIGHT, |
|---|
| 20 | EV_MOUSE_BUTTON_WHEELUP, |
|---|
| 21 | EV_MOUSE_BUTTON_WHEELDOWN, |
|---|
| 22 | EV_MOUSE_MOTION, |
|---|
| 23 | EV_JOY_AXIS_MOTION, |
|---|
| 24 | EV_JOY_BALL_MOTION, |
|---|
| 25 | EV_JOY_HAT_MOTION, |
|---|
| 26 | EV_JOY_BUTTON, |
|---|
| 27 | |
|---|
| 28 | EV_UNKNOWN, |
|---|
| 29 | |
|---|
| 30 | EV_NUMBER |
|---|
| 31 | }; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | //! this is an enumeration of all states of the event_handler/game |
|---|
| 35 | typedef enum elState |
|---|
| 36 | { |
|---|
| 37 | ES_GAME, //!< the state during the game plays |
|---|
| 38 | ES_GAME_MENU, //!< state when the menu is called during game |
|---|
| 39 | ES_MENU, //!< orxonox menu state |
|---|
| 40 | |
|---|
| 41 | ES_ALL, //!< you want to register events for all states |
|---|
| 42 | |
|---|
| 43 | ES_NUMBER, //!< the number of states |
|---|
| 44 | }; |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | #endif /* _EVENT_DEF_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.