root / sdl_keysym.h @ 1247c5f7
History | View | Annotate | Download (8.6 kB)
1 | 3d11d0eb | bellard | typedef struct { |
---|---|---|---|
2 | 3d11d0eb | bellard | const char* name; |
3 | 3d11d0eb | bellard | int keysym;
|
4 | 3d11d0eb | bellard | } name2keysym_t; |
5 | 3d11d0eb | bellard | static name2keysym_t name2keysym[]={
|
6 | 3d11d0eb | bellard | /* ascii */
|
7 | 3d11d0eb | bellard | { "space", 0x020}, |
8 | 3d11d0eb | bellard | { "exclam", 0x021}, |
9 | 3d11d0eb | bellard | { "quotedbl", 0x022}, |
10 | 3d11d0eb | bellard | { "numbersign", 0x023}, |
11 | 3d11d0eb | bellard | { "dollar", 0x024}, |
12 | 3d11d0eb | bellard | { "percent", 0x025}, |
13 | 3d11d0eb | bellard | { "ampersand", 0x026}, |
14 | 3d11d0eb | bellard | { "apostrophe", 0x027}, |
15 | 3d11d0eb | bellard | { "parenleft", 0x028}, |
16 | 3d11d0eb | bellard | { "parenright", 0x029}, |
17 | 3d11d0eb | bellard | { "asterisk", 0x02a}, |
18 | 3d11d0eb | bellard | { "plus", 0x02b}, |
19 | 3d11d0eb | bellard | { "comma", 0x02c}, |
20 | 3d11d0eb | bellard | { "minus", 0x02d}, |
21 | 3d11d0eb | bellard | { "period", 0x02e}, |
22 | 3d11d0eb | bellard | { "slash", 0x02f}, |
23 | 3d11d0eb | bellard | { "0", 0x030}, |
24 | 3d11d0eb | bellard | { "1", 0x031}, |
25 | 3d11d0eb | bellard | { "2", 0x032}, |
26 | 3d11d0eb | bellard | { "3", 0x033}, |
27 | 3d11d0eb | bellard | { "4", 0x034}, |
28 | 3d11d0eb | bellard | { "5", 0x035}, |
29 | 3d11d0eb | bellard | { "6", 0x036}, |
30 | 3d11d0eb | bellard | { "7", 0x037}, |
31 | 3d11d0eb | bellard | { "8", 0x038}, |
32 | 3d11d0eb | bellard | { "9", 0x039}, |
33 | 3d11d0eb | bellard | { "colon", 0x03a}, |
34 | 3d11d0eb | bellard | { "semicolon", 0x03b}, |
35 | 3d11d0eb | bellard | { "less", 0x03c}, |
36 | 3d11d0eb | bellard | { "equal", 0x03d}, |
37 | 3d11d0eb | bellard | { "greater", 0x03e}, |
38 | 3d11d0eb | bellard | { "question", 0x03f}, |
39 | 3d11d0eb | bellard | { "at", 0x040}, |
40 | 3d11d0eb | bellard | { "A", 0x041}, |
41 | 3d11d0eb | bellard | { "B", 0x042}, |
42 | 3d11d0eb | bellard | { "C", 0x043}, |
43 | 3d11d0eb | bellard | { "D", 0x044}, |
44 | 3d11d0eb | bellard | { "E", 0x045}, |
45 | 3d11d0eb | bellard | { "F", 0x046}, |
46 | 3d11d0eb | bellard | { "G", 0x047}, |
47 | 3d11d0eb | bellard | { "H", 0x048}, |
48 | 3d11d0eb | bellard | { "I", 0x049}, |
49 | 3d11d0eb | bellard | { "J", 0x04a}, |
50 | 3d11d0eb | bellard | { "K", 0x04b}, |
51 | 3d11d0eb | bellard | { "L", 0x04c}, |
52 | 3d11d0eb | bellard | { "M", 0x04d}, |
53 | 3d11d0eb | bellard | { "N", 0x04e}, |
54 | 3d11d0eb | bellard | { "O", 0x04f}, |
55 | 3d11d0eb | bellard | { "P", 0x050}, |
56 | 3d11d0eb | bellard | { "Q", 0x051}, |
57 | 3d11d0eb | bellard | { "R", 0x052}, |
58 | 3d11d0eb | bellard | { "S", 0x053}, |
59 | 3d11d0eb | bellard | { "T", 0x054}, |
60 | 3d11d0eb | bellard | { "U", 0x055}, |
61 | 3d11d0eb | bellard | { "V", 0x056}, |
62 | 3d11d0eb | bellard | { "W", 0x057}, |
63 | 3d11d0eb | bellard | { "X", 0x058}, |
64 | 3d11d0eb | bellard | { "Y", 0x059}, |
65 | 3d11d0eb | bellard | { "Z", 0x05a}, |
66 | 3d11d0eb | bellard | { "bracketleft", 0x05b}, |
67 | 3d11d0eb | bellard | { "backslash", 0x05c}, |
68 | 3d11d0eb | bellard | { "bracketright", 0x05d}, |
69 | 3d11d0eb | bellard | { "asciicircum", 0x05e}, |
70 | 3d11d0eb | bellard | { "underscore", 0x05f}, |
71 | 3d11d0eb | bellard | { "grave", 0x060}, |
72 | 3d11d0eb | bellard | { "a", 0x061}, |
73 | 3d11d0eb | bellard | { "b", 0x062}, |
74 | 3d11d0eb | bellard | { "c", 0x063}, |
75 | 3d11d0eb | bellard | { "d", 0x064}, |
76 | 3d11d0eb | bellard | { "e", 0x065}, |
77 | 3d11d0eb | bellard | { "f", 0x066}, |
78 | 3d11d0eb | bellard | { "g", 0x067}, |
79 | 3d11d0eb | bellard | { "h", 0x068}, |
80 | 3d11d0eb | bellard | { "i", 0x069}, |
81 | 3d11d0eb | bellard | { "j", 0x06a}, |
82 | 3d11d0eb | bellard | { "k", 0x06b}, |
83 | 3d11d0eb | bellard | { "l", 0x06c}, |
84 | 3d11d0eb | bellard | { "m", 0x06d}, |
85 | 3d11d0eb | bellard | { "n", 0x06e}, |
86 | 3d11d0eb | bellard | { "o", 0x06f}, |
87 | 3d11d0eb | bellard | { "p", 0x070}, |
88 | 3d11d0eb | bellard | { "q", 0x071}, |
89 | 3d11d0eb | bellard | { "r", 0x072}, |
90 | 3d11d0eb | bellard | { "s", 0x073}, |
91 | 3d11d0eb | bellard | { "t", 0x074}, |
92 | 3d11d0eb | bellard | { "u", 0x075}, |
93 | 3d11d0eb | bellard | { "v", 0x076}, |
94 | 3d11d0eb | bellard | { "w", 0x077}, |
95 | 3d11d0eb | bellard | { "x", 0x078}, |
96 | 3d11d0eb | bellard | { "y", 0x079}, |
97 | 3d11d0eb | bellard | { "z", 0x07a}, |
98 | 3d11d0eb | bellard | { "braceleft", 0x07b}, |
99 | 3d11d0eb | bellard | { "bar", 0x07c}, |
100 | 3d11d0eb | bellard | { "braceright", 0x07d}, |
101 | 3d11d0eb | bellard | { "asciitilde", 0x07e}, |
102 | 3d11d0eb | bellard | |
103 | 3d11d0eb | bellard | /* latin 1 extensions */
|
104 | 3d11d0eb | bellard | { "nobreakspace", 0x0a0}, |
105 | 3d11d0eb | bellard | { "exclamdown", 0x0a1}, |
106 | 3d11d0eb | bellard | { "cent", 0x0a2}, |
107 | 3d11d0eb | bellard | { "sterling", 0x0a3}, |
108 | 3d11d0eb | bellard | { "currency", 0x0a4}, |
109 | 3d11d0eb | bellard | { "yen", 0x0a5}, |
110 | 3d11d0eb | bellard | { "brokenbar", 0x0a6}, |
111 | 3d11d0eb | bellard | { "section", 0x0a7}, |
112 | 3d11d0eb | bellard | { "diaeresis", 0x0a8}, |
113 | 3d11d0eb | bellard | { "copyright", 0x0a9}, |
114 | 3d11d0eb | bellard | { "ordfeminine", 0x0aa}, |
115 | 3d11d0eb | bellard | { "guillemotleft", 0x0ab}, |
116 | 3d11d0eb | bellard | { "notsign", 0x0ac}, |
117 | 3d11d0eb | bellard | { "hyphen", 0x0ad}, |
118 | 3d11d0eb | bellard | { "registered", 0x0ae}, |
119 | 3d11d0eb | bellard | { "macron", 0x0af}, |
120 | 3d11d0eb | bellard | { "degree", 0x0b0}, |
121 | 3d11d0eb | bellard | { "plusminus", 0x0b1}, |
122 | 3d11d0eb | bellard | { "twosuperior", 0x0b2}, |
123 | 3d11d0eb | bellard | { "threesuperior", 0x0b3}, |
124 | 3d11d0eb | bellard | { "acute", 0x0b4}, |
125 | 3d11d0eb | bellard | { "mu", 0x0b5}, |
126 | 3d11d0eb | bellard | { "paragraph", 0x0b6}, |
127 | 3d11d0eb | bellard | { "periodcentered", 0x0b7}, |
128 | 3d11d0eb | bellard | { "cedilla", 0x0b8}, |
129 | 3d11d0eb | bellard | { "onesuperior", 0x0b9}, |
130 | 3d11d0eb | bellard | { "masculine", 0x0ba}, |
131 | 3d11d0eb | bellard | { "guillemotright", 0x0bb}, |
132 | 3d11d0eb | bellard | { "onequarter", 0x0bc}, |
133 | 3d11d0eb | bellard | { "onehalf", 0x0bd}, |
134 | 3d11d0eb | bellard | { "threequarters", 0x0be}, |
135 | 3d11d0eb | bellard | { "questiondown", 0x0bf}, |
136 | 3d11d0eb | bellard | { "Agrave", 0x0c0}, |
137 | 3d11d0eb | bellard | { "Aacute", 0x0c1}, |
138 | 3d11d0eb | bellard | { "Acircumflex", 0x0c2}, |
139 | 3d11d0eb | bellard | { "Atilde", 0x0c3}, |
140 | 3d11d0eb | bellard | { "Adiaeresis", 0x0c4}, |
141 | 3d11d0eb | bellard | { "Aring", 0x0c5}, |
142 | 3d11d0eb | bellard | { "AE", 0x0c6}, |
143 | 3d11d0eb | bellard | { "Ccedilla", 0x0c7}, |
144 | 3d11d0eb | bellard | { "Egrave", 0x0c8}, |
145 | 3d11d0eb | bellard | { "Eacute", 0x0c9}, |
146 | 3d11d0eb | bellard | { "Ecircumflex", 0x0ca}, |
147 | 3d11d0eb | bellard | { "Ediaeresis", 0x0cb}, |
148 | 3d11d0eb | bellard | { "Igrave", 0x0cc}, |
149 | 3d11d0eb | bellard | { "Iacute", 0x0cd}, |
150 | 3d11d0eb | bellard | { "Icircumflex", 0x0ce}, |
151 | 3d11d0eb | bellard | { "Idiaeresis", 0x0cf}, |
152 | 3d11d0eb | bellard | { "ETH", 0x0d0}, |
153 | 3d11d0eb | bellard | { "Eth", 0x0d0}, |
154 | 3d11d0eb | bellard | { "Ntilde", 0x0d1}, |
155 | 3d11d0eb | bellard | { "Ograve", 0x0d2}, |
156 | 3d11d0eb | bellard | { "Oacute", 0x0d3}, |
157 | 3d11d0eb | bellard | { "Ocircumflex", 0x0d4}, |
158 | 3d11d0eb | bellard | { "Otilde", 0x0d5}, |
159 | 3d11d0eb | bellard | { "Odiaeresis", 0x0d6}, |
160 | 3d11d0eb | bellard | { "multiply", 0x0d7}, |
161 | 3d11d0eb | bellard | { "Ooblique", 0x0d8}, |
162 | 3d11d0eb | bellard | { "Oslash", 0x0d8}, |
163 | 3d11d0eb | bellard | { "Ugrave", 0x0d9}, |
164 | 3d11d0eb | bellard | { "Uacute", 0x0da}, |
165 | 3d11d0eb | bellard | { "Ucircumflex", 0x0db}, |
166 | 3d11d0eb | bellard | { "Udiaeresis", 0x0dc}, |
167 | 3d11d0eb | bellard | { "Yacute", 0x0dd}, |
168 | 3d11d0eb | bellard | { "THORN", 0x0de}, |
169 | 3d11d0eb | bellard | { "Thorn", 0x0de}, |
170 | 3d11d0eb | bellard | { "ssharp", 0x0df}, |
171 | 3d11d0eb | bellard | { "agrave", 0x0e0}, |
172 | 3d11d0eb | bellard | { "aacute", 0x0e1}, |
173 | 3d11d0eb | bellard | { "acircumflex", 0x0e2}, |
174 | 3d11d0eb | bellard | { "atilde", 0x0e3}, |
175 | 3d11d0eb | bellard | { "adiaeresis", 0x0e4}, |
176 | 3d11d0eb | bellard | { "aring", 0x0e5}, |
177 | 3d11d0eb | bellard | { "ae", 0x0e6}, |
178 | 3d11d0eb | bellard | { "ccedilla", 0x0e7}, |
179 | 3d11d0eb | bellard | { "egrave", 0x0e8}, |
180 | 3d11d0eb | bellard | { "eacute", 0x0e9}, |
181 | 3d11d0eb | bellard | { "ecircumflex", 0x0ea}, |
182 | 3d11d0eb | bellard | { "ediaeresis", 0x0eb}, |
183 | 3d11d0eb | bellard | { "igrave", 0x0ec}, |
184 | 3d11d0eb | bellard | { "iacute", 0x0ed}, |
185 | 3d11d0eb | bellard | { "icircumflex", 0x0ee}, |
186 | 3d11d0eb | bellard | { "idiaeresis", 0x0ef}, |
187 | 3d11d0eb | bellard | { "eth", 0x0f0}, |
188 | 3d11d0eb | bellard | { "ntilde", 0x0f1}, |
189 | 3d11d0eb | bellard | { "ograve", 0x0f2}, |
190 | 3d11d0eb | bellard | { "oacute", 0x0f3}, |
191 | 3d11d0eb | bellard | { "ocircumflex", 0x0f4}, |
192 | 3d11d0eb | bellard | { "otilde", 0x0f5}, |
193 | 3d11d0eb | bellard | { "odiaeresis", 0x0f6}, |
194 | 3d11d0eb | bellard | { "division", 0x0f7}, |
195 | 3d11d0eb | bellard | { "oslash", 0x0f8}, |
196 | 3d11d0eb | bellard | { "ooblique", 0x0f8}, |
197 | 3d11d0eb | bellard | { "ugrave", 0x0f9}, |
198 | 3d11d0eb | bellard | { "uacute", 0x0fa}, |
199 | 3d11d0eb | bellard | { "ucircumflex", 0x0fb}, |
200 | 3d11d0eb | bellard | { "udiaeresis", 0x0fc}, |
201 | 3d11d0eb | bellard | { "yacute", 0x0fd}, |
202 | 3d11d0eb | bellard | { "thorn", 0x0fe}, |
203 | 3d11d0eb | bellard | { "ydiaeresis", 0x0ff}, |
204 | 3d11d0eb | bellard | {"EuroSign", SDLK_EURO},
|
205 | 3d11d0eb | bellard | |
206 | 3d11d0eb | bellard | /* modifiers */
|
207 | 3d11d0eb | bellard | {"Control_L", SDLK_LCTRL},
|
208 | 3d11d0eb | bellard | {"Control_R", SDLK_RCTRL},
|
209 | 3d11d0eb | bellard | {"Alt_L", SDLK_LALT},
|
210 | 3d11d0eb | bellard | {"Alt_R", SDLK_RALT},
|
211 | 3d11d0eb | bellard | {"Caps_Lock", SDLK_CAPSLOCK},
|
212 | 3d11d0eb | bellard | {"Meta_L", SDLK_LMETA},
|
213 | 3d11d0eb | bellard | {"Meta_R", SDLK_RMETA},
|
214 | 3d11d0eb | bellard | {"Shift_L", SDLK_LSHIFT},
|
215 | 3d11d0eb | bellard | {"Shift_R", SDLK_RSHIFT},
|
216 | 1289f43a | bellard | {"Super_L", SDLK_LSUPER},
|
217 | 1289f43a | bellard | {"Super_R", SDLK_RSUPER},
|
218 | 3d11d0eb | bellard | |
219 | 3d11d0eb | bellard | /* special keys */
|
220 | 3d11d0eb | bellard | {"BackSpace", SDLK_BACKSPACE},
|
221 | 3d11d0eb | bellard | {"Tab", SDLK_TAB},
|
222 | 3d11d0eb | bellard | {"Return", SDLK_RETURN},
|
223 | 3d11d0eb | bellard | {"Right", SDLK_RIGHT},
|
224 | 3d11d0eb | bellard | {"Left", SDLK_LEFT},
|
225 | 3d11d0eb | bellard | {"Up", SDLK_UP},
|
226 | 3d11d0eb | bellard | {"Down", SDLK_DOWN},
|
227 | 3d11d0eb | bellard | {"Page_Down", SDLK_PAGEDOWN},
|
228 | 3d11d0eb | bellard | {"Page_Up", SDLK_PAGEUP},
|
229 | 3d11d0eb | bellard | {"Insert", SDLK_INSERT},
|
230 | 3d11d0eb | bellard | {"Delete", SDLK_DELETE},
|
231 | 3d11d0eb | bellard | {"Home", SDLK_HOME},
|
232 | 3d11d0eb | bellard | {"End", SDLK_END},
|
233 | 3d11d0eb | bellard | {"Scroll_Lock", SDLK_SCROLLOCK},
|
234 | 3d11d0eb | bellard | {"F1", SDLK_F1},
|
235 | 3d11d0eb | bellard | {"F2", SDLK_F2},
|
236 | 3d11d0eb | bellard | {"F3", SDLK_F3},
|
237 | 3d11d0eb | bellard | {"F4", SDLK_F4},
|
238 | 3d11d0eb | bellard | {"F5", SDLK_F5},
|
239 | 3d11d0eb | bellard | {"F6", SDLK_F6},
|
240 | 3d11d0eb | bellard | {"F7", SDLK_F7},
|
241 | 3d11d0eb | bellard | {"F8", SDLK_F8},
|
242 | 3d11d0eb | bellard | {"F9", SDLK_F9},
|
243 | 3d11d0eb | bellard | {"F10", SDLK_F10},
|
244 | 3d11d0eb | bellard | {"F11", SDLK_F11},
|
245 | 3d11d0eb | bellard | {"F12", SDLK_F12},
|
246 | 3d11d0eb | bellard | {"F13", SDLK_F13},
|
247 | 3d11d0eb | bellard | {"F14", SDLK_F14},
|
248 | 3d11d0eb | bellard | {"F15", SDLK_F15},
|
249 | 3d11d0eb | bellard | {"Sys_Req", SDLK_SYSREQ},
|
250 | 3d11d0eb | bellard | {"KP_0", SDLK_KP0},
|
251 | 3d11d0eb | bellard | {"KP_1", SDLK_KP1},
|
252 | 3d11d0eb | bellard | {"KP_2", SDLK_KP2},
|
253 | 3d11d0eb | bellard | {"KP_3", SDLK_KP3},
|
254 | 3d11d0eb | bellard | {"KP_4", SDLK_KP4},
|
255 | 3d11d0eb | bellard | {"KP_5", SDLK_KP5},
|
256 | 3d11d0eb | bellard | {"KP_6", SDLK_KP6},
|
257 | 3d11d0eb | bellard | {"KP_7", SDLK_KP7},
|
258 | 3d11d0eb | bellard | {"KP_8", SDLK_KP8},
|
259 | 3d11d0eb | bellard | {"KP_9", SDLK_KP9},
|
260 | 3d11d0eb | bellard | {"KP_Add", SDLK_KP_PLUS},
|
261 | 3d11d0eb | bellard | {"KP_Decimal", SDLK_KP_PERIOD},
|
262 | 3d11d0eb | bellard | {"KP_Divide", SDLK_KP_DIVIDE},
|
263 | 3d11d0eb | bellard | {"KP_Enter", SDLK_KP_ENTER},
|
264 | 3d11d0eb | bellard | {"KP_Equal", SDLK_KP_EQUALS},
|
265 | 3d11d0eb | bellard | {"KP_Multiply", SDLK_KP_MULTIPLY},
|
266 | 3d11d0eb | bellard | {"KP_Subtract", SDLK_KP_MINUS},
|
267 | 3d11d0eb | bellard | {"help", SDLK_HELP},
|
268 | 3d11d0eb | bellard | {"Menu", SDLK_MENU},
|
269 | 3d11d0eb | bellard | {"Power", SDLK_POWER},
|
270 | 3d11d0eb | bellard | {"Print", SDLK_PRINT},
|
271 | 3d11d0eb | bellard | {"Mode_switch", SDLK_MODE},
|
272 | 3d11d0eb | bellard | {"Multi_Key", SDLK_COMPOSE},
|
273 | 3d11d0eb | bellard | {"Num_Lock", SDLK_NUMLOCK},
|
274 | 3d11d0eb | bellard | {"Pause", SDLK_PAUSE},
|
275 | 76472292 | bellard | {"Escape", SDLK_ESCAPE},
|
276 | 3d11d0eb | bellard | |
277 | 3d11d0eb | bellard | {0,0}, |
278 | 3d11d0eb | bellard | }; |