Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/event/event_def.h @ 4759

Last change on this file since 4759 was 4662, checked in by bensch, 19 years ago

orxonox/trunk: safer compile support

File size: 1.0 KB
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#ifdef HAVE_SDL_H
11#include "SDL_keysym.h"
12#else
13#include "SDL/SDL_keysym.h"
14#endif
15#include "stdincl.h"
16
17
18//! these are the extended event types, that are not included in SDL_keysym
19typedef enum extEventTyes
20  {
21    EV_MOUSE_BUTTON_LEFT = SDLK_LAST,
22    EV_MOUSE_BUTTON_MIDDLE,
23    EV_MOUSE_BUTTON_RIGHT,
24    EV_MOUSE_BUTTON_WHEELUP,
25    EV_MOUSE_BUTTON_WHEELDOWN,
26    EV_MOUSE_MOTION,
27    EV_JOY_AXIS_MOTION,
28    EV_JOY_BALL_MOTION,
29    EV_JOY_HAT_MOTION,
30    EV_JOY_BUTTON,
31
32    EV_UNKNOWN,
33
34    EV_NUMBER
35  };
36
37
38//! this is an enumeration of all states of the event_handler/game
39typedef enum elState
40  {
41    ES_GAME,           //!< the state during the game plays
42    ES_GAME_MENU,      //!< state when the menu is called during game
43    ES_MENU,           //!< orxonox menu state
44
45    ES_ALL,            //!< you want to register events for all states
46
47    ES_NUMBER,         //!< the number of states
48  };
49
50
51#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.