2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2006 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 /* What we really want is a mapping of every raw key on the keyboard.
27 To support international keyboards, we use the range 0xA1 - 0xFF
28 as international virtual keycodes. We'll follow in the footsteps of X11...
33 /* The keyboard syms have been cleverly chosen to map to ASCII */
75 Skip uppercase letters
77 SDLK_LEFTBRACKET
= 91,
79 SDLK_RIGHTBRACKET
= 93,
110 /* End of ASCII mapped keysyms */
112 /* International keyboard syms */
113 SDLK_WORLD_0
= 160, /* 0xA0 */
208 SDLK_WORLD_95
= 255, /* 0xFF */
221 SDLK_KP_PERIOD
= 266,
222 SDLK_KP_DIVIDE
= 267,
223 SDLK_KP_MULTIPLY
= 268,
227 SDLK_KP_EQUALS
= 272,
229 /* Arrows + Home/End pad */
257 /* Key state modifier keys */
260 SDLK_SCROLLOCK
= 302,
269 SDLK_LSUPER
= 311, /* Left "Windows" key */
270 SDLK_RSUPER
= 312, /* Right "Windows" key */
271 SDLK_MODE
= 313, /* "Alt Gr" key */
272 SDLK_COMPOSE
= 314, /* Multi-key compose key */
274 /* Miscellaneous function keys */
280 SDLK_POWER
= 320, /* Power Macintosh power key */
281 SDLK_EURO
= 321, /* Some european keyboards */
282 SDLK_UNDO
= 322, /* Atari keyboard has Undo */
284 /* Add any other keys here */
289 /* Enumeration of valid key mods (possibly OR'd together) */
303 KMOD_RESERVED
= 0x8000
306 #define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
307 #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
308 #define KMOD_ALT (KMOD_LALT|KMOD_RALT)
309 #define KMOD_META (KMOD_LMETA|KMOD_RMETA)
311 #endif /* _SDL_keysym_h */