comparison include/SDL_scancode.h @ 2305:fbe8ff44c519

First pass of new SDL scancode concept for X11.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 07 Feb 2008 15:31:09 +0000
parents d87417504c75
children 99210400e8b9
comparison
equal deleted inserted replaced
2304:50f58ce12497 2305:fbe8ff44c519
89 SDL_SCANCODE_ESCAPE = 41, 89 SDL_SCANCODE_ESCAPE = 41,
90 SDL_SCANCODE_BACKSPACE = 42, 90 SDL_SCANCODE_BACKSPACE = 42,
91 SDL_SCANCODE_TAB = 43, 91 SDL_SCANCODE_TAB = 43,
92 SDL_SCANCODE_SPACE = 44, 92 SDL_SCANCODE_SPACE = 44,
93 93
94 SDL_SCANCODE_HYPHENMINUS = 45, 94 SDL_SCANCODE_MINUS = 45,
95 SDL_SCANCODE_EQUALS = 46, 95 SDL_SCANCODE_EQUALS = 46,
96 SDL_SCANCODE_LEFTBRACKET = 47, 96 SDL_SCANCODE_LEFTBRACKET = 47,
97 SDL_SCANCODE_RIGHTBRACKET = 48, 97 SDL_SCANCODE_RIGHTBRACKET = 48,
98 SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return key on ISO keyboards and at the right end of the QWERTY row on ANSI keyboards. Produces REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US layout, REVERSE SOLIDUS and VERTICAL LINE in a UK Mac layout, NUMBER SIGN and TILDE in a UK Windows layout, DOLLAR SIGN and POUND SIGN in a Swiss German layout, NUMBER SIGN and APOSTROPHE in a German layout, GRAVE ACCENT and POUND SIGN in a French Mac layout, and ASTERISK and MICRO SIGN in a French Windows layout. */ 98 SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return key on ISO keyboards and at the right end of the QWERTY row on ANSI keyboards. Produces REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US layout, REVERSE SOLIDUS and VERTICAL LINE in a UK Mac layout, NUMBER SIGN and TILDE in a UK Windows layout, DOLLAR SIGN and POUND SIGN in a Swiss German layout, NUMBER SIGN and APOSTROPHE in a German layout, GRAVE ACCENT and POUND SIGN in a French Mac layout, and ASTERISK and MICRO SIGN in a French Windows layout. */
99 SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code instead of 49 for the same key, but all OSes I've seen treat the two codes identically. So, as an implementor, unless your keyboard generates both of those codes and your OS treats them differently, you should generate SDL_SCANCODE_BACKSLASH instead of this code. As a user, you should not rely on this code because SDL will never generate it with most (all?) keyboards. */ 99 SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code instead of 49 for the same key, but all OSes I've seen treat the two codes identically. So, as an implementor, unless your keyboard generates both of those codes and your OS treats them differently, you should generate SDL_SCANCODE_BACKSLASH instead of this code. As a user, you should not rely on this code because SDL will never generate it with most (all?) keyboards. */
284 SDL_SCANCODE_AUDIOPREV = 259, 284 SDL_SCANCODE_AUDIOPREV = 259,
285 SDL_SCANCODE_AUDIOSTOP = 260, 285 SDL_SCANCODE_AUDIOSTOP = 260,
286 SDL_SCANCODE_AUDIOPLAY = 261, 286 SDL_SCANCODE_AUDIOPLAY = 261,
287 SDL_SCANCODE_AUDIOMUTE = 262, 287 SDL_SCANCODE_AUDIOMUTE = 262,
288 SDL_SCANCODE_MEDIASELECT = 263, 288 SDL_SCANCODE_MEDIASELECT = 263,
289 SDL_SCANCODE_MAIL = 264, 289 SDL_SCANCODE_WWW = 264,
290 SDL_SCANCODE_CALCULATOR = 265, 290 SDL_SCANCODE_MAIL = 265,
291 SDL_SCANCODE_COMPUTER = 266, 291 SDL_SCANCODE_CALCULATOR = 266,
292 SDL_SCANCODE_AC_SEARCH = 267, 292 SDL_SCANCODE_COMPUTER = 267,
293 SDL_SCANCODE_AC_HOME = 268, 293 SDL_SCANCODE_AC_SEARCH = 268,
294 SDL_SCANCODE_AC_BACK = 269, 294 SDL_SCANCODE_AC_HOME = 269,
295 SDL_SCANCODE_AC_FORWARD = 270, 295 SDL_SCANCODE_AC_BACK = 270,
296 SDL_SCANCODE_AC_STOP = 271, 296 SDL_SCANCODE_AC_FORWARD = 271,
297 SDL_SCANCODE_AC_REFRESH = 272, 297 SDL_SCANCODE_AC_STOP = 272,
298 SDL_SCANCODE_AC_BOOKMARKS = 273, 298 SDL_SCANCODE_AC_REFRESH = 273,
299 SDL_SCANCODE_AC_BOOKMARKS = 274,
299 300
300 /* These are values that Christian Walther added (for mac keyboard?) */ 301 /* These are values that Christian Walther added (for mac keyboard?) */
301 302
302 SDL_SCANCODE_BRIGHTNESSDOWN = 274, 303 SDL_SCANCODE_BRIGHTNESSDOWN = 275,
303 SDL_SCANCODE_BRIGHTNESSUP = 275, 304 SDL_SCANCODE_BRIGHTNESSUP = 276,
304 SDL_SCANCODE_DISPLAYSWITCH = 276, /**< display mirroring/dual display switch, video mode switch */ 305 SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display switch, video mode switch */
305 SDL_SCANCODE_KBDILLUMTOGGLE = 277, 306 SDL_SCANCODE_KBDILLUMTOGGLE = 278,
306 SDL_SCANCODE_KBDILLUMDOWN = 278, 307 SDL_SCANCODE_KBDILLUMDOWN = 279,
307 SDL_SCANCODE_KBDILLUMUP = 279, 308 SDL_SCANCODE_KBDILLUMUP = 280,
308 SDL_SCANCODE_EJECT = 280, 309 SDL_SCANCODE_EJECT = 281,
309 SDL_SCANCODE_SLEEP = 281, 310 SDL_SCANCODE_SLEEP = 282,
310 311
311 /* Add any other keys here */ 312 /* Add any other keys here */
312 313
313 SDL_NUM_SCANCODES = 512 /**< (not a key, just marks the number of scancodes for array bounds) */ 314 SDL_NUM_SCANCODES = 512 /**< (not a key, just marks the number of scancodes for array bounds) */
314 } SDL_scancode; 315 } SDL_scancode;