-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.h
73 lines (66 loc) · 1.04 KB
/
variables.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*void memset32(void *buf, uint32_t n, int32_t c)
{
__asm {
mov ecx, n
mov eax, c
mov edi, buf
rep stosd
}
}*/
#ifdef PORTABILITY
typedef enum
{
KEY_ESCAPE = 0x9,
KEY_TAB = 23,
KEY_Y = 29,
KEY_P = 33,
KEY_ENTER = 0x24,
KEY_N = 57,
KEY_F1 = 0x43,
KEY_F2 = 0x44,
KEY_F3 = 0x45,
KEY_F4 = 0x46,
KEY_F5 = 0x47,
KEY_UP = 0x6f,
KEY_LEFT= 113,
KEY_RIGHT= 114,
KEY_DOWN = 0x74,
KEY_F6 = 0x48,
KEY_F12= 0xff, //SDLK_F12 cambiar a esto
KEY_ESPACE = 0xff
}Keys;
#else
typedef enum
{
KEY_ESCAPE = 0x1,
KEY_TAB = 15,
KEY_Y = 21,
KEY_P = 25,
KEY_ENTER = 0x1C,
KEY_N = 49,
KEY_F1 = 59,
KEY_F2 = 60,
KEY_F3 = 61,
KEY_F4 = 62,
KEY_F5 = 63,
KEY_UP = 0x48,
KEY_LEFT = 0x4B,
KEY_RIGHT = 0x4D,
KEY_DOWN = 0x50,
KEY_F6 = 64,
KEY_F12 = 88, //SDLK_F12 cambiar a esto
KEY_ESPACE = 0x39
}Keys;
#endif
typedef enum
{
IN_RACE_ACELERATE = 0x1,
IN_RACE_BRAKE = 0x2,
IN_RACE_LEFT = 0x4,
IN_RACE_RIGHT = 0x8,
IN_RACE_TURBO = 0x10,
IN_RACE_GUN = 0x20,
IN_RACE_MINE = 0x40,
IN_RACE_HORN = 0x42,
IN_RACE_BRAKE_MINE = 0xFD
}InRaceKeys;