Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: useless stuff :)

File size: 1.2 KB
Line 
1/*!
2 * @file event_def.h
3 * some central definitions
4*/
5
6#ifndef _EVENT_DEF_H
7#define _EVENT_DEF_H
8
9#ifdef HAVE_SDL_H
10#include "SDL_keysym.h"
11#else
12#include "SDL/SDL_keysym.h"
13#endif
14#include "stdincl.h"
15
16
17//! these are the extended event types, that are not included in SDL_keysym
18typedef enum extEventTyes
19{
20  EV_MOUSE_BUTTON_LEFT            = SDLK_LAST,
21  EV_MOUSE_BUTTON_MIDDLE,
22  EV_MOUSE_BUTTON_RIGHT,
23  EV_MOUSE_BUTTON_WHEELUP,
24  EV_MOUSE_BUTTON_WHEELDOWN,
25  EV_MOUSE_MOTION                 = SDL_MOUSEMOTION,
26  EV_JOY_AXIS_MOTION,
27  EV_JOY_BALL_MOTION,
28  EV_JOY_HAT_MOTION,
29  EV_JOY_BUTTON,
30
31  EV_VIDEO_RESIZE                 = SDL_VIDEORESIZE,
32
33  EV_UNKNOWN,
34
35  EV_NUMBER = 500,  //!< FIXME MSUT Resolve this EV_NUMBER should hold all the Events, also the count of other events
36};
37
38
39//! this is an enumeration of all states of the event_handler/game
40typedef enum elState
41  {
42    ES_GAME,           //!< the state during the game plays
43    ES_GAME_MENU,      //!< state when the menu is called during game
44    ES_MENU,           //!< orxonox menu state
45
46    ES_ALL,            //!< you want to register events for all states
47
48    ES_NUMBER,          //!< the number of states
49  };
50
51
52#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.