Last change
on this file since 4425 was
4417,
checked in by patrick, 20 years ago
|
orxonox/trunk: fixed a possible segfault, didn't allocate the resources cleanly
|
File size:
782 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 | |
---|
22 | typedef 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_UNKNOWN, |
---|
36 | |
---|
37 | EV_NUMBER |
---|
38 | }; |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | typedef enum elState |
---|
43 | { |
---|
44 | ES_GAME, |
---|
45 | ES_GAME_MENU, |
---|
46 | ES_MENU, |
---|
47 | |
---|
48 | ES_ALL, |
---|
49 | |
---|
50 | ES_NUMBER, |
---|
51 | }; |
---|
52 | |
---|
53 | |
---|
54 | #endif /* _EVENT_DEF_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.