vkQuake2 doxygen
1.0 dev
keys.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 1997-2001 Id Software, Inc.
3
Copyright (C) 2018-2019 Krzysztof Kondrak
4
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14
See the GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20
*/
21
22
//
23
// these are the key numbers that should be passed to Key_Event
24
//
25
#define K_TAB 9
26
#define K_ENTER 13
27
#define K_ESCAPE 27
28
#define K_SPACE 32
29
30
// normal keys should be passed as lowercased ascii
31
32
#define K_BACKSPACE 127
33
#define K_UPARROW 128
34
#define K_DOWNARROW 129
35
#define K_LEFTARROW 130
36
#define K_RIGHTARROW 131
37
38
#define K_ALT 132
39
#define K_CTRL 133
40
#define K_SHIFT 134
41
#define K_F1 135
42
#define K_F2 136
43
#define K_F3 137
44
#define K_F4 138
45
#define K_F5 139
46
#define K_F6 140
47
#define K_F7 141
48
#define K_F8 142
49
#define K_F9 143
50
#define K_F10 144
51
#define K_F11 145
52
#define K_F12 146
53
#define K_INS 147
54
#define K_DEL 148
55
#define K_PGDN 149
56
#define K_PGUP 150
57
#define K_HOME 151
58
#define K_END 152
59
#define K_CMD 153
60
61
#define K_KP_HOME 160
62
#define K_KP_UPARROW 161
63
#define K_KP_PGUP 162
64
#define K_KP_LEFTARROW 163
65
#define K_KP_5 164
66
#define K_KP_RIGHTARROW 165
67
#define K_KP_END 166
68
#define K_KP_DOWNARROW 167
69
#define K_KP_PGDN 168
70
#define K_KP_ENTER 169
71
#define K_KP_INS 170
72
#define K_KP_DEL 171
73
#define K_KP_SLASH 172
74
#define K_KP_MINUS 173
75
#define K_KP_PLUS 174
76
77
#define K_PAUSE 255
78
79
//
80
// mouse buttons generate virtual keys
81
//
82
#define K_MOUSE1 200
83
#define K_MOUSE2 201
84
#define K_MOUSE3 202
85
86
//
87
// joystick buttons
88
//
89
#define K_JOY1 203
90
#define K_JOY2 204
91
#define K_JOY3 205
92
#define K_JOY4 206
93
94
//
95
// aux keys are for multi-buttoned joysticks to generate so they can use
96
// the normal binding process
97
//
98
#define K_AUX1 207
99
#define K_AUX2 208
100
#define K_AUX3 209
101
#define K_AUX4 210
102
#define K_AUX5 211
103
#define K_AUX6 212
104
#define K_AUX7 213
105
#define K_AUX8 214
106
#define K_AUX9 215
107
#define K_AUX10 216
108
#define K_AUX11 217
109
#define K_AUX12 218
110
#define K_AUX13 219
111
#define K_AUX14 220
112
#define K_AUX15 221
113
#define K_AUX16 222
114
#define K_AUX17 223
115
#define K_AUX18 224
116
#define K_AUX19 225
117
#define K_AUX20 226
118
#define K_AUX21 227
119
#define K_AUX22 228
120
#define K_AUX23 229
121
#define K_AUX24 230
122
#define K_AUX25 231
123
#define K_AUX26 232
124
#define K_AUX27 233
125
#define K_AUX28 234
126
#define K_AUX29 235
127
#define K_AUX30 236
128
#define K_AUX31 237
129
#define K_AUX32 238
130
131
#define K_MWHEELDOWN 239
132
#define K_MWHEELUP 240
133
134
extern
char
*
keybindings
[256];
135
extern
int
key_repeats
[256];
136
137
extern
int
anykeydown
;
138
extern
char
chat_buffer
[];
139
extern
int
chat_bufferlen
;
140
extern
qboolean
chat_team
;
141
142
void
Key_Event
(
int
key,
qboolean
down,
unsigned
time);
143
void
Key_Init
(
void
);
144
void
Key_WriteBindings
(FILE *f);
145
void
Key_SetBinding
(
int
keynum,
char
*binding);
146
void
Key_ClearStates
(
void
);
147
int
Key_GetKey
(
void
);
148
anykeydown
int anykeydown
Definition:
keys.c:34
Key_WriteBindings
void Key_WriteBindings(FILE *f)
Definition:
keys.c:616
qboolean
qboolean
Definition:
q_shared.h:63
Key_GetKey
int Key_GetKey(void)
Definition:
keys.c:956
Key_SetBinding
void Key_SetBinding(int keynum, char *binding)
Definition:
keys.c:506
keybindings
char * keybindings[256]
Definition:
keys.c:40
chat_buffer
char chat_buffer[]
Definition:
keys.c:392
Key_Event
void Key_Event(int key, qboolean down, unsigned time)
Definition:
keys.c:744
Key_Init
void Key_Init(void)
Definition:
keys.c:647
key_repeats
int key_repeats[256]
Definition:
keys.c:44
chat_team
qboolean chat_team
Definition:
keys.c:391
Key_ClearStates
void Key_ClearStates(void)
Definition:
keys.c:935
chat_bufferlen
int chat_bufferlen
Definition:
keys.c:393
src
client
keys.h
Generated by
1.8.17