Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: the mouse buttons now should be identified correctly

File size: 765 bytes
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#define EVENT_QUEUE_LENGTH 32
20
21
22typedef enum extEventTyes
23  {
24    EV_MOUSE_BUTTON_LEFT = SDLK_LAST,
25    EV_MOUSE_BUTTON_MIDDLE,
26    EV_MOUSE_BUTTON_RIGHT,
27    EV_MOUSE_BUTTON_WHEELUP,
28    EV_MOUSE_BUTTON_WHEELDOWN,
29    EV_MOUSE_MOTION,
30    EV_JOY_AXIS_MOTION,
31    EV_JOY_BALL_MOTION,
32    EV_JOY_HAT_MOTION,
33    EV_JOY_BUTTON,
34
35    EV_NUMBER
36  };
37
38
39
40typedef enum elState
41  {
42    ES_GAME,
43    ES_GAME_MENU,
44    ES_MENU,
45
46    ES_ALL,
47
48    ES_NUMBER,
49  };
50
51
52#endif /* _EVENT_DEF_H */
Note: See TracBrowser for help on using the repository browser.