Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5493 was 5477, checked in by patrick, 19 years ago

orxonox/lib/event: enumeration now correctly implemented

File size: 1.1 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
[4363]10#include "SDL_keysym.h"
[4662]11#else
12#include "SDL/SDL_keysym.h"
13#endif
[4387]14#include "stdincl.h"
[4363]15
[4366]16
[4450]17//! these are the extended event types, that are not included in SDL_keysym
[4363]18typedef enum extEventTyes
[4780]19{
[5477]20  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST + 1,
[4780]21  EV_MOUSE_BUTTON_MIDDLE,
22  EV_MOUSE_BUTTON_RIGHT,
23  EV_MOUSE_BUTTON_WHEELUP,
24  EV_MOUSE_BUTTON_WHEELDOWN,
[5069]25  EV_MOUSE_MOTION,
[4780]26  EV_JOY_AXIS_MOTION,
27  EV_JOY_BALL_MOTION,
28  EV_JOY_HAT_MOTION,
29  EV_JOY_BUTTON,
[4365]30
[5069]31  EV_VIDEO_RESIZE,
[4782]32
[4780]33  EV_UNKNOWN,
[4417]34
[5069]35  EV_NUMBER
[4780]36};
[4454]37
[4780]38
[4450]39//! this is an enumeration of all states of the event_handler/game
[4364]40typedef enum elState
41  {
[5388]42    ES_NULL         = -1,
43    ES_GAME         = 0,       //!< the state during the game plays
44    ES_GAME_MENU    = 1,       //!< state when the menu is called during game
45    ES_MENU         = 2,       //!< orxonox menu state
46    ES_SHELL        = 3,       //!< if we are in shell Modus
[4363]47
[5388]48    ES_ALL          = 4,       //!< you want to register events for all states
[4364]49
[5388]50    ES_NUMBER       = 5,       //!< the number of states
[4364]51  };
52
53
[4353]54#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.