Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10451 was 9876, checked in by bensch, 18 years ago

compiles better on Windows

File size: 1.2 KB
RevLine 
[4662]1/*!
[4873]2 * @file event_def.h
3 * some central definitions
[4353]4*/
5
6#ifndef _EVENT_DEF_H
7#define _EVENT_DEF_H
8
[4662]9#ifdef HAVE_SDL_H
[9876]10 #include "SDL_keysym.h"
[4662]11#else
[9876]12 #include "SDL/SDL_keysym.h"
[4662]13#endif
[4363]14
[4450]15//! these are the extended event types, that are not included in SDL_keysym
[9876]16typedef enum {
[5477]17  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST + 1,
[4780]18  EV_MOUSE_BUTTON_MIDDLE,
19  EV_MOUSE_BUTTON_RIGHT,
20  EV_MOUSE_BUTTON_WHEELUP,
21  EV_MOUSE_BUTTON_WHEELDOWN,
[5069]22  EV_MOUSE_MOTION,
[4780]23  EV_JOY_AXIS_MOTION,
24  EV_JOY_BALL_MOTION,
25  EV_JOY_HAT_MOTION,
26  EV_JOY_BUTTON,
[4365]27
[7919]28  EV_WINDOW_FOCUS,
[5069]29  EV_VIDEO_RESIZE,
[4782]30
[7919]31  EV_LEAVE_STATE,
[5553]32  EV_MAIN_QUIT,
33
[4780]34  EV_UNKNOWN,
[4417]35
[5069]36  EV_NUMBER
[9876]37} extEventTyes;
[4454]38
[4780]39
[4450]40//! this is an enumeration of all states of the event_handler/game
[9876]41typedef enum
[8148]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
[9876]48 
[8148]49  ES_ALL          = 4,       //!< you want to register events for all states
[4364]50
[9876]51  ESTATE_NUMBER   = 5        //!< the number of states < Namespace-problem in windows.
52} elState;
[4364]53
[4353]54#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.