Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: orxonox-events registered, solved an error in ClassList

File size: 1.1 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                 = SDL_MOUSEMOTION,
27  EV_JOY_AXIS_MOTION,
28  EV_JOY_BALL_MOTION,
29  EV_JOY_HAT_MOTION,
30  EV_JOY_BUTTON,
31
32  EV_VIDEO_RESIZE                 = SDL_VIDEORESIZE,
33
34  EV_UNKNOWN,
35
36  EV_NUMBER,
37};
38
39
40//! this is an enumeration of all states of the event_handler/game
41typedef enum elState
42  {
43    ES_GAME,           //!< the state during the game plays
44    ES_GAME_MENU,      //!< state when the menu is called during game
45    ES_MENU,           //!< orxonox menu state
46
47    ES_ALL,            //!< you want to register events for all states
48
49    ES_NUMBER,          //!< the number of states
50  };
51
52
53#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.