Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
304 lines (297 loc) · 9.03 KB

SDL_keynames.h

File metadata and controls

304 lines (297 loc) · 9.03 KB
 
Aug 19, 2007
Aug 19, 2007
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2007 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Christian Walther
cwalther@gmx.ch
*/
/* Names for the physical SDLKey constants, returned by SDL_GetKeyName().
The strings are in UTF-8 encoding.
This table can (and should) be modified by a video driver in its VideoInit()
function using SDL_SetKeyName() to account for platform-dependent (but
layout-independent) key names.
The physical SDLKey codes can be divided into two groups:
- codes that occur both as physical and as layout keys. These have their
real, "user-readable" display name here.
- codes that only occur as physical keys, i.e. are never returned by
SDL_GetLayoutKey() if the backend implements it properly. These names are
therefore never returned by SDL_GetKeyName(SDL_GetLayoutKey(
event.key.keysym.sym)), the proper way of displaying a key name to the
user, but only by SDL_GetKeyName(event.key.keysym.sym), which is only
useful for debugging purposes. To emphasize this, these codes are named by
their "programmer-readable" SDLK_ constants here rather than by a
"user-readable" display name.
*/
/* *INDENT-OFF* */
static const char *SDL_keynames[SDLK_LAST] = {
/* 0 */ "", /* SDL_PK_NONE */
/* 1 */ "unknown key",
/* 2 */ NULL, /* unused */
/* 3 */ NULL, /* unused */
/* 4 */ "SDLK_A",
/* 5 */ "SDLK_B",
/* 6 */ "SDLK_C",
/* 7 */ "SDLK_D",
/* 8 */ "SDLK_E",
/* 9 */ "SDLK_F",
/* 10 */ "SDLK_G",
/* 11 */ "SDLK_H",
/* 12 */ "SDLK_I",
/* 13 */ "SDLK_J",
/* 14 */ "SDLK_K",
/* 15 */ "SDLK_L",
/* 16 */ "SDLK_M",
/* 17 */ "SDLK_N",
/* 18 */ "SDLK_O",
/* 19 */ "SDLK_P",
/* 20 */ "SDLK_Q",
/* 21 */ "SDLK_R",
/* 22 */ "SDLK_S",
/* 23 */ "SDLK_T",
/* 24 */ "SDLK_U",
/* 25 */ "SDLK_V",
/* 26 */ "SDLK_W",
/* 27 */ "SDLK_X",
/* 28 */ "SDLK_Y",
/* 29 */ "SDLK_Z",
/* 30 */ "SDLK_1",
/* 31 */ "SDLK_2",
/* 32 */ "SDLK_3",
/* 33 */ "SDLK_4",
/* 34 */ "SDLK_5",
/* 35 */ "SDLK_6",
/* 36 */ "SDLK_7",
/* 37 */ "SDLK_8",
/* 38 */ "SDLK_9",
/* 39 */ "SDLK_0",
/* 40 */ "return",
/* 41 */ "escape",
/* 42 */ "backspace",
/* 43 */ "tab",
/* 44 */ "space",
/* 45 */ "SDLK_HYPHENMINUS",
/* 46 */ "SDLK_EQUALS",
/* 47 */ "SDLK_LEFTBRACKET",
/* 48 */ "SDLK_RIGHTBRACKET",
/* 49 */ "SDLK_BACKSLASH",
/* 50 */ "SDLK_NONUSHASH",
/* 51 */ "SDLK_SEMICOLON",
/* 52 */ "SDLK_APOSTROPHE",
/* 53 */ "SDLK_GRAVE",
/* 54 */ "SDLK_COMMA",
/* 55 */ "SDLK_PERIOD",
/* 56 */ "SDLK_SLASH",
/* 57 */ "caps lock",
/* 58 */ "F1",
/* 59 */ "F2",
/* 60 */ "F3",
/* 61 */ "F4",
/* 62 */ "F5",
/* 63 */ "F6",
/* 64 */ "F7",
/* 65 */ "F8",
/* 66 */ "F9",
/* 67 */ "F10",
/* 68 */ "F11",
/* 69 */ "F12",
/* 70 */ "print screen",
/* 71 */ "scroll lock",
/* 72 */ "pause",
/* 73 */ "insert",
/* 74 */ "home",
/* 75 */ "page up",
/* 76 */ "delete",
/* 77 */ "end",
/* 78 */ "page down",
/* 79 */ "right",
/* 80 */ "left",
/* 81 */ "down",
/* 82 */ "up",
/* 83 */ "num lock",
/* 84 */ "SDLK_KP_DIVIDE",
/* 85 */ "SDLK_KP_MULTIPLY",
/* 86 */ "SDLK_KP_MINUS",
/* 87 */ "SDLK_KP_PLUS",
/* 88 */ "enter",
/* 89 */ "SDLK_KP_1",
/* 90 */ "SDLK_KP_2",
/* 91 */ "SDLK_KP_3",
/* 92 */ "SDLK_KP_4",
/* 93 */ "SDLK_KP_5",
/* 94 */ "SDLK_KP_6",
/* 95 */ "SDLK_KP_7",
/* 96 */ "SDLK_KP_8",
/* 97 */ "SDLK_KP_9",
/* 98 */ "SDLK_KP_0",
/* 99 */ "SDLK_KP_PERIOD",
/* 100 */ "SDLK_NONUSBACKSLASH",
/* 101 */ "application",
/* 102 */ "power",
/* 103 */ "SDLK_KP_EQUALS",
/* 104 */ "F13",
/* 105 */ "F14",
/* 106 */ "F15",
/* 107 */ "F16",
/* 108 */ "F17",
/* 109 */ "F18",
/* 110 */ "F19",
/* 111 */ "F20",
/* 112 */ "F21",
/* 113 */ "F22",
/* 114 */ "F23",
/* 115 */ "F24",
/* 116 */ "execute",
/* 117 */ "help",
/* 118 */ "menu",
/* 119 */ "select",
/* 120 */ "stop",
/* 121 */ "again",
/* 122 */ "undo",
/* 123 */ "cut",
/* 124 */ "copy",
/* 125 */ "paste",
/* 126 */ "find",
/* 127 */ "mute",
/* 128 */ "volume up",
/* 129 */ "volume down",
/* 130 */ "caps lock", /* unused */
/* 131 */ "num lock", /* unused */
/* 132 */ "scroll lock", /* unused */
/* 133 */ "SDLK_KP_COMMA",
/* 134 */ "SDLK_KP_EQUALSAS400",
/* 135 */ "international 1",
/* 136 */ "international 2",
/* 137 */ "international 3",
/* 138 */ "international 4",
/* 139 */ "international 5",
/* 140 */ "international 6",
/* 141 */ "international 7",
/* 142 */ "international 8",
/* 143 */ "international 9",
/* 144 */ "lang 1",
/* 145 */ "lang 2",
/* 146 */ "lang 3",
/* 147 */ "lang 4",
/* 148 */ "lang 5",
/* 149 */ "lang 6",
/* 150 */ "lang 7",
/* 151 */ "lang 8",
/* 152 */ "lang 9",
/* 153 */ "alt erase",
/* 154 */ "sys req",
/* 155 */ "cancel",
/* 156 */ "clear",
/* 157 */ "prior",
/* 158 */ "return",
/* 159 */ "separator",
/* 160 */ "out",
/* 161 */ "oper",
/* 162 */ "clear/again",
/* 163 */ "crsel/props",
/* 164 */ "exsel",
/* 165 */ NULL, /* unused */
/* 166 */ NULL, /* unused */
/* 167 */ NULL, /* unused */
/* 168 */ NULL, /* unused */
/* 169 */ NULL, /* unused */
/* 170 */ NULL, /* unused */
/* 171 */ NULL, /* unused */
/* 172 */ NULL, /* unused */
/* 173 */ NULL, /* unused */
/* 174 */ NULL, /* unused */
/* 175 */ NULL, /* unused */
/* 176 */ "[00]",
/* 177 */ "[000]",
/* 178 */ "thousands separator",
/* 179 */ "decimal separator",
/* 180 */ "currency unit",
/* 181 */ "currency sub-unit",
/* 182 */ "[(]",
/* 183 */ "[)]",
/* 184 */ "[{]",
/* 185 */ "[}]",
/* 186 */ "[tab]",
/* 187 */ "[backspace]",
/* 188 */ "[A]",
/* 189 */ "[B]",
/* 190 */ "[C]",
/* 191 */ "[D]",
/* 192 */ "[E]",
/* 193 */ "[F]",
/* 194 */ "[XOR]",
/* 195 */ "[^]",
/* 196 */ "[%]",
/* 197 */ "[<]",
/* 198 */ "[>]",
/* 199 */ "[&]",
/* 200 */ "[&&]",
/* 201 */ "[|]",
/* 202 */ "[||]",
/* 203 */ "[:]",
/* 204 */ "[#]",
/* 205 */ "[space]",
/* 206 */ "[@]",
/* 207 */ "[!]",
/* 208 */ "[mem store]",
/* 209 */ "[mem recall]",
/* 210 */ "[mem clear]",
/* 211 */ "[mem +]",
/* 212 */ "[mem -]",
/* 213 */ "[mem *]",
/* 214 */ "[mem /]",
/* 215 */ "[+/-]",
/* 216 */ "[clear]",
/* 217 */ "[clear entry]",
/* 218 */ "[binary]",
/* 219 */ "[octal]",
/* 220 */ "[decimal]",
/* 221 */ "[hexadecimal]",
/* 222 */ NULL, /* unused */
/* 223 */ NULL, /* unused */
/* 224 */ "left ctrl",
/* 225 */ "left shift",
/* 226 */ "left alt",
/* 227 */ "left meta",
/* 228 */ "right ctrl",
/* 229 */ "right shift",
/* 230 */ "right alt",
/* 231 */ "right meta",
/* 232 */ "mode",
/* 233 */ NULL, /* unused */
/* 234 */ NULL, /* unused */
/* 235 */ NULL, /* unused */
/* 236 */ "brightness down",
/* 237 */ "brightness up",
/* 238 */ "display switch",
/* 239 */ "kbd illum toggle",
/* 240 */ "kbd illum down",
/* 241 */ "kbd illum up",
/* 242 */ "eject",
/* 243 */ "sleep",
/* 244 */ "play",
/* 245 */ "stop",
/* 246 */ "previous",
/* 247 */ "next",
/* 248 */ "calc",
/* 249 */ "www",
/* 250 */ "e-mail",
/* 251 */ "media",
/* 252 */ "computer",
/* 253 */ "search",
/* 254 */ "bookmarks",
/* 255 */ "back",
/* 256 */ "forward",
/* 257 */ "reload",
/* 258 */ "stop"
};
/* *INDENT-ON* */