Mercurial > sdl-ios-xcode
comparison src/events/scancodes_xfree86.h @ 2825:620a91b6d263
Date: Tue, 02 Dec 2008 23:38:26 +0100
From: Couriersud
Subject: Re: SDL: Keyboard layout unknown
I have attached a diff which will add an additional keyboard layout to
the x11 driver. The issue arose, when I moved to ubuntu intrepid. I was
only able to map the keys available on my keyboard. The differences to
the existing keyboard was the mapping of HOME,UP,DOWN and some other
keys.
Now only one issue remains. Dead keys (e.g. ^, ` ') on european
keyboards do not generate a "scancode" event. Just a text event when the
key is composed (e.g. ?? ?? ??).
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 03 Dec 2008 04:32:24 +0000 |
parents | fbe8ff44c519 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2824:4dba7aa7ea77 | 2825:620a91b6d263 |
---|---|
173 /* 143 */ SDL_SCANCODE_UNKNOWN, /* OPEN */ | 173 /* 143 */ SDL_SCANCODE_UNKNOWN, /* OPEN */ |
174 /* 144 */ SDL_SCANCODE_PASTE, | 174 /* 144 */ SDL_SCANCODE_PASTE, |
175 /* 145 */ SDL_SCANCODE_FIND, | 175 /* 145 */ SDL_SCANCODE_FIND, |
176 /* 146 */ SDL_SCANCODE_CUT, | 176 /* 146 */ SDL_SCANCODE_CUT, |
177 }; | 177 }; |
178 | |
179 /* for wireless usb keyboard (manufacturer TRUST) without numpad. */ | |
180 static SDL_scancode xfree86_scancode_table2[] = { | |
181 /* 0 */ SDL_SCANCODE_UNKNOWN, | |
182 /* 1 */ SDL_SCANCODE_ESCAPE, | |
183 /* 2 */ SDL_SCANCODE_1, | |
184 /* 3 */ SDL_SCANCODE_2, | |
185 /* 4 */ SDL_SCANCODE_3, | |
186 /* 5 */ SDL_SCANCODE_4, | |
187 /* 6 */ SDL_SCANCODE_5, | |
188 /* 7 */ SDL_SCANCODE_6, | |
189 /* 8 */ SDL_SCANCODE_7, | |
190 /* 9 */ SDL_SCANCODE_8, | |
191 /* 10 */ SDL_SCANCODE_9, | |
192 /* 11 */ SDL_SCANCODE_0, | |
193 /* 12 */ SDL_SCANCODE_MINUS, | |
194 /* 13 */ SDL_SCANCODE_EQUALS, | |
195 /* 14 */ SDL_SCANCODE_BACKSPACE, | |
196 /* 15 */ SDL_SCANCODE_TAB, | |
197 /* 16 */ SDL_SCANCODE_Q, | |
198 /* 17 */ SDL_SCANCODE_W, | |
199 /* 18 */ SDL_SCANCODE_E, | |
200 /* 19 */ SDL_SCANCODE_R, | |
201 /* 20 */ SDL_SCANCODE_T, | |
202 /* 21 */ SDL_SCANCODE_Y, | |
203 /* 22 */ SDL_SCANCODE_U, | |
204 /* 23 */ SDL_SCANCODE_I, | |
205 /* 24 */ SDL_SCANCODE_O, | |
206 /* 25 */ SDL_SCANCODE_P, | |
207 /* 26 */ SDL_SCANCODE_LEFTBRACKET, | |
208 /* 27 */ SDL_SCANCODE_RIGHTBRACKET, | |
209 /* 28 */ SDL_SCANCODE_RETURN, | |
210 /* 29 */ SDL_SCANCODE_LCTRL, | |
211 /* 30 */ SDL_SCANCODE_A, | |
212 /* 31 */ SDL_SCANCODE_S, | |
213 /* 32 */ SDL_SCANCODE_D, | |
214 /* 33 */ SDL_SCANCODE_F, | |
215 /* 34 */ SDL_SCANCODE_G, | |
216 /* 35 */ SDL_SCANCODE_H, | |
217 /* 36 */ SDL_SCANCODE_J, | |
218 /* 37 */ SDL_SCANCODE_K, | |
219 /* 38 */ SDL_SCANCODE_L, | |
220 /* 39 */ SDL_SCANCODE_SEMICOLON, | |
221 /* 40 */ SDL_SCANCODE_APOSTROPHE, | |
222 /* 41 */ SDL_SCANCODE_GRAVE, | |
223 /* 42 */ SDL_SCANCODE_LSHIFT, | |
224 /* 43 */ SDL_SCANCODE_BACKSLASH, | |
225 /* 44 */ SDL_SCANCODE_Z, | |
226 /* 45 */ SDL_SCANCODE_X, | |
227 /* 46 */ SDL_SCANCODE_C, | |
228 /* 47 */ SDL_SCANCODE_V, | |
229 /* 48 */ SDL_SCANCODE_B, | |
230 /* 49 */ SDL_SCANCODE_N, | |
231 /* 50 */ SDL_SCANCODE_M, | |
232 /* 51 */ SDL_SCANCODE_COMMA, | |
233 /* 52 */ SDL_SCANCODE_PERIOD, | |
234 /* 53 */ SDL_SCANCODE_SLASH, | |
235 /* 54 */ SDL_SCANCODE_RSHIFT, | |
236 /* 55 */ SDL_SCANCODE_KP_MULTIPLY, | |
237 /* 56 */ SDL_SCANCODE_LALT, | |
238 /* 57 */ SDL_SCANCODE_SPACE, | |
239 /* 58 */ SDL_SCANCODE_CAPSLOCK, | |
240 /* 59 */ SDL_SCANCODE_F1, | |
241 /* 60 */ SDL_SCANCODE_F2, | |
242 /* 61 */ SDL_SCANCODE_F3, | |
243 /* 62 */ SDL_SCANCODE_F4, | |
244 /* 63 */ SDL_SCANCODE_F5, | |
245 /* 64 */ SDL_SCANCODE_F6, | |
246 /* 65 */ SDL_SCANCODE_F7, | |
247 /* 66 */ SDL_SCANCODE_F8, | |
248 /* 67 */ SDL_SCANCODE_F9, | |
249 /* 68 */ SDL_SCANCODE_F10, | |
250 /* 69 */ SDL_SCANCODE_NUMLOCKCLEAR, | |
251 /* 70 */ SDL_SCANCODE_SCROLLLOCK, | |
252 /* 71 */ SDL_SCANCODE_KP_7, | |
253 /* 72 */ SDL_SCANCODE_KP_8, | |
254 /* 73 */ SDL_SCANCODE_KP_9, | |
255 /* 74 */ SDL_SCANCODE_KP_MINUS, | |
256 /* 75 */ SDL_SCANCODE_KP_4, | |
257 /* 76 */ SDL_SCANCODE_KP_5, | |
258 /* 77 */ SDL_SCANCODE_KP_6, | |
259 /* 78 */ SDL_SCANCODE_KP_PLUS, | |
260 /* 79 */ SDL_SCANCODE_KP_1, | |
261 /* 80 */ SDL_SCANCODE_KP_2, | |
262 /* 81 */ SDL_SCANCODE_KP_3, | |
263 /* 82 */ SDL_SCANCODE_KP_0, | |
264 /* 83 */ SDL_SCANCODE_KP_PERIOD, | |
265 /* 84 */ SDL_SCANCODE_SYSREQ, /* ???? */ | |
266 /* 85 */ SDL_SCANCODE_MODE, /* ???? */ | |
267 /* 86 */ SDL_SCANCODE_NONUSBACKSLASH, | |
268 /* 87 */ SDL_SCANCODE_F11, | |
269 /* 88 */ SDL_SCANCODE_F12, | |
270 /* 89 */ SDL_SCANCODE_UNKNOWN, | |
271 /* 90 */ SDL_SCANCODE_UNKNOWN, | |
272 /* 91 */ SDL_SCANCODE_UNKNOWN, | |
273 /* 92 */ SDL_SCANCODE_UNKNOWN, | |
274 /* 93 */ SDL_SCANCODE_UNKNOWN, | |
275 /* 94 */ SDL_SCANCODE_UNKNOWN, | |
276 /* 95 */ SDL_SCANCODE_UNKNOWN, | |
277 /* 96 */ SDL_SCANCODE_UNKNOWN, | |
278 /* 97 */ SDL_SCANCODE_RCTRL, | |
279 /* 98 */ SDL_SCANCODE_KP_DIVIDE, | |
280 /* 99 */ SDL_SCANCODE_UNKNOWN, | |
281 /* 100 */ SDL_SCANCODE_RALT, /* ISO_Level3_Shift, ALTGR, RALT */ | |
282 /* 101 */ SDL_SCANCODE_UNKNOWN, | |
283 /* 102 */ SDL_SCANCODE_HOME, | |
284 /* 103 */ SDL_SCANCODE_UP, | |
285 /* 104 */ SDL_SCANCODE_PAGEUP, | |
286 /* 105 */ SDL_SCANCODE_LEFT, | |
287 /* 106 */ SDL_SCANCODE_RIGHT, | |
288 /* 107 */ SDL_SCANCODE_END, | |
289 /* 108 */ SDL_SCANCODE_DOWN, | |
290 /* 109 */ SDL_SCANCODE_PAGEDOWN, | |
291 /* 110 */ SDL_SCANCODE_INSERT, | |
292 /* 111 */ SDL_SCANCODE_DELETE, | |
293 /* 112 */ SDL_SCANCODE_UNKNOWN, | |
294 /* 113 */ SDL_SCANCODE_UNKNOWN, | |
295 /* 114 */ SDL_SCANCODE_UNKNOWN, | |
296 /* 115 */ SDL_SCANCODE_UNKNOWN, | |
297 /* 116 */ SDL_SCANCODE_UNKNOWN, | |
298 /* 117 */ SDL_SCANCODE_UNKNOWN, | |
299 /* 118 */ SDL_SCANCODE_UNKNOWN, | |
300 /* 119 */ SDL_SCANCODE_UNKNOWN, | |
301 /* 120 */ SDL_SCANCODE_UNKNOWN, | |
302 /* 121 */ SDL_SCANCODE_PAUSE, | |
303 /* 122 */ SDL_SCANCODE_UNKNOWN, | |
304 /* 123 */ SDL_SCANCODE_UNKNOWN, | |
305 /* 124 */ SDL_SCANCODE_UNKNOWN, | |
306 /* 125 */ SDL_SCANCODE_LGUI, | |
307 /* 126 */ SDL_SCANCODE_RGUI, | |
308 /* 127 */ SDL_SCANCODE_APPLICATION, | |
309 /* 128 */ SDL_SCANCODE_UNKNOWN, | |
310 /* 129 */ SDL_SCANCODE_UNKNOWN, | |
311 /* 130 */ SDL_SCANCODE_UNKNOWN, | |
312 /* 131 */ SDL_SCANCODE_UNKNOWN, | |
313 /* 132 */ SDL_SCANCODE_UNKNOWN, | |
314 /* 133 */ SDL_SCANCODE_UNKNOWN, | |
315 /* 134 */ SDL_SCANCODE_UNKNOWN, | |
316 /* 135 */ SDL_SCANCODE_UNKNOWN, | |
317 /* 136 */ SDL_SCANCODE_UNKNOWN, | |
318 /* 137 */ SDL_SCANCODE_UNKNOWN, | |
319 /* 138 */ SDL_SCANCODE_UNKNOWN, | |
320 /* 139 */ SDL_SCANCODE_UNKNOWN, | |
321 /* 140 */ SDL_SCANCODE_UNKNOWN, | |
322 /* 141 */ SDL_SCANCODE_UNKNOWN, | |
323 /* 142 */ SDL_SCANCODE_UNKNOWN, | |
324 /* 143 */ SDL_SCANCODE_UNKNOWN, | |
325 /* 144 */ SDL_SCANCODE_UNKNOWN, | |
326 /* 145 */ SDL_SCANCODE_UNKNOWN, | |
327 /* 146 */ SDL_SCANCODE_UNKNOWN, | |
328 }; | |
329 | |
178 /* *INDENT-ON* */ | 330 /* *INDENT-ON* */ |