comparison src/events/scancodes_xfree86.h @ 5083:25d4feb7c127

Renamed SDL_keysym to SDL_KeySym Renamed SDL_scancode to SDL_ScanCode Added #defines to SDL_compat.h
author krogoway
date Mon, 24 Jan 2011 13:47:35 -0600
parents 743930106dd7
children 572a73d71b5f
comparison
equal deleted inserted replaced
5082:de59e0218aa2 5083:25d4feb7c127
24 /* XFree86 key code to SDL scancode mapping table 24 /* XFree86 key code to SDL scancode mapping table
25 Sources: 25 Sources:
26 - atKeyNames.h from XFree86 source code 26 - atKeyNames.h from XFree86 source code
27 */ 27 */
28 /* *INDENT-OFF* */ 28 /* *INDENT-OFF* */
29 static const SDL_scancode xfree86_scancode_table[] = { 29 static const SDL_ScanCode xfree86_scancode_table[] = {
30 /* 0 */ SDL_SCANCODE_UNKNOWN, 30 /* 0 */ SDL_SCANCODE_UNKNOWN,
31 /* 1 */ SDL_SCANCODE_ESCAPE, 31 /* 1 */ SDL_SCANCODE_ESCAPE,
32 /* 2 */ SDL_SCANCODE_1, 32 /* 2 */ SDL_SCANCODE_1,
33 /* 3 */ SDL_SCANCODE_2, 33 /* 3 */ SDL_SCANCODE_2,
34 /* 4 */ SDL_SCANCODE_3, 34 /* 4 */ SDL_SCANCODE_3,
175 /* 145 */ SDL_SCANCODE_FIND, 175 /* 145 */ SDL_SCANCODE_FIND,
176 /* 146 */ SDL_SCANCODE_CUT, 176 /* 146 */ SDL_SCANCODE_CUT,
177 }; 177 };
178 178
179 /* for wireless usb keyboard (manufacturer TRUST) without numpad. */ 179 /* for wireless usb keyboard (manufacturer TRUST) without numpad. */
180 static const SDL_scancode xfree86_scancode_table2[] = { 180 static const SDL_ScanCode xfree86_scancode_table2[] = {
181 /* 0 */ SDL_SCANCODE_UNKNOWN, 181 /* 0 */ SDL_SCANCODE_UNKNOWN,
182 /* 1 */ SDL_SCANCODE_ESCAPE, 182 /* 1 */ SDL_SCANCODE_ESCAPE,
183 /* 2 */ SDL_SCANCODE_1, 183 /* 2 */ SDL_SCANCODE_1,
184 /* 3 */ SDL_SCANCODE_2, 184 /* 3 */ SDL_SCANCODE_2,
185 /* 4 */ SDL_SCANCODE_3, 185 /* 4 */ SDL_SCANCODE_3,