Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

trunk: merge Check in the Event-changes:
r7867 | bensch | 2006-05-26 13:19:46 +0200 (Fri, 26 May 2006) | 1 line

Events better subscribed


r7866 | bensch | 2006-05-26 13:11:10 +0200 (Fri, 26 May 2006) | 1 line

Events are subscribed at the EventListener, and not the EventHandler

File size: 1.1 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
15
16//! these are the extended event types, that are not included in SDL_keysym
17typedef enum extEventTyes
18{
19  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST + 1,
20  EV_MOUSE_BUTTON_MIDDLE,
21  EV_MOUSE_BUTTON_RIGHT,
22  EV_MOUSE_BUTTON_WHEELUP,
23  EV_MOUSE_BUTTON_WHEELDOWN,
24  EV_MOUSE_MOTION,
25  EV_JOY_AXIS_MOTION,
26  EV_JOY_BALL_MOTION,
27  EV_JOY_HAT_MOTION,
28  EV_JOY_BUTTON,
29
30  EV_VIDEO_RESIZE,
31
32  EV_MAIN_QUIT,
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_NULL         = -1,
44    ES_GAME         = 0,       //!< the state during the game plays
45    ES_GAME_MENU    = 1,       //!< state when the menu is called during game
46    ES_MENU         = 2,       //!< orxonox menu state
47    ES_SHELL        = 3,       //!< if we are in shell Modus
48
49    ES_ALL          = 4,       //!< you want to register events for all states
50
51    ES_NUMBER       = 5,       //!< the number of states
52  };
53
54
55#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.