Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/event/event_def.h @ 4450

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

orxonox/trunk: commented the event handler and event class

File size: 1.1 KB
Line 
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
10#include "SDL_keysym.h"
11#include "stdincl.h"
12
13
14#define CMD_LENGHT 16
15#define N_STD_KEYS SDLK_LAST
16#define N_BUTTONS 6
17#define DEFAULT_KEYBIND_FILE "~/.orxonox/orxonox.conf"
18
19
20#define EVENT_QUEUE_LENGTH 32
21
22//! these are the extended event types, that are not included in SDL_keysym
23typedef enum extEventTyes
24  {
25    EV_MOUSE_BUTTON_LEFT = SDLK_LAST,
26    EV_MOUSE_BUTTON_MIDDLE,
27    EV_MOUSE_BUTTON_RIGHT,
28    EV_MOUSE_BUTTON_WHEELUP,
29    EV_MOUSE_BUTTON_WHEELDOWN,
30    EV_MOUSE_MOTION,
31    EV_JOY_AXIS_MOTION,
32    EV_JOY_BALL_MOTION,
33    EV_JOY_HAT_MOTION,
34    EV_JOY_BUTTON,
35
36    EV_UNKNOWN,
37
38    EV_NUMBER
39  };
40
41//! this is an enumeration of all states of the event_handler/game
42typedef enum elState
43  {
44    ES_GAME,           //!< the state during the game plays
45    ES_GAME_MENU,      //!< state when the menu is called during game
46    ES_MENU,           //!< orxonox menu state
47
48    ES_ALL,            //!< you want to register events for all states
49
50    ES_NUMBER,         //!< the number of states
51  };
52
53
54#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.