Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: moved util/event to lib/event

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