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