2
SDL - Simple DirectMedia Layer
3
Copyright (C) 1997-2004 Sam Lantinga
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 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
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
"@(#) $Id: SDL_keysym.h,v 1.6 2004/01/04 16:49:07 slouken Exp $";
31
/* What we really want is a mapping of every raw key on the keyboard.
32
To support international keyboards, we use the range 0xA1 - 0xFF
33
as international virtual keycodes. We'll follow in the footsteps of X11...
38
/* The keyboard syms have been cleverly chosen to map to ASCII */
80
Skip uppercase letters
82
SDLK_LEFTBRACKET = 91,
84
SDLK_RIGHTBRACKET = 93,
115
/* End of ASCII mapped keysyms */
117
/* International keyboard syms */
118
SDLK_WORLD_0 = 160, /* 0xA0 */
213
SDLK_WORLD_95 = 255, /* 0xFF */
226
SDLK_KP_PERIOD = 266,
227
SDLK_KP_DIVIDE = 267,
228
SDLK_KP_MULTIPLY = 268,
232
SDLK_KP_EQUALS = 272,
234
/* Arrows + Home/End pad */
262
/* Key state modifier keys */
265
SDLK_SCROLLOCK = 302,
274
SDLK_LSUPER = 311, /* Left "Windows" key */
275
SDLK_RSUPER = 312, /* Right "Windows" key */
276
SDLK_MODE = 313, /* "Alt Gr" key */
277
SDLK_COMPOSE = 314, /* Multi-key compose key */
279
/* Miscellaneous function keys */
285
SDLK_POWER = 320, /* Power Macintosh power key */
286
SDLK_EURO = 321, /* Some european keyboards */
287
SDLK_UNDO = 322, /* Atari keyboard has Undo */
289
/* Add any other keys here */
294
/* Enumeration of valid key mods (possibly OR'd together) */
308
KMOD_RESERVED = 0x8000
311
#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
312
#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
313
#define KMOD_ALT (KMOD_LALT|KMOD_RALT)
314
#define KMOD_META (KMOD_LMETA|KMOD_RMETA)
316
#endif /* _SDL_keysym_h */