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