include/SDL_keycode.h
changeset 5326 4a4095fe12e3
parent 5262 b530ef003506
child 5535 96594ac5fd1a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL_keycode.h	Wed Feb 16 15:46:12 2011 -0800
     1.3 @@ -0,0 +1,342 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2011 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +/**
    1.27 + *  \file SDL_keycode.h
    1.28 + *  
    1.29 + *  Defines constants which identify keyboard keys and modifiers.
    1.30 + */
    1.31 +
    1.32 +#ifndef _SDL_keycode_h
    1.33 +#define _SDL_keycode_h
    1.34 +
    1.35 +#include "SDL_stdinc.h"
    1.36 +#include "SDL_scancode.h"
    1.37 +
    1.38 +/**
    1.39 + *  \brief The SDL virtual key representation.
    1.40 + *  
    1.41 + *  Values of this type are used to represent keyboard keys using the current
    1.42 + *  layout of the keyboard.  These values include Unicode values representing
    1.43 + *  the unmodified character that would be generated by pressing the key, or
    1.44 + *  an SDLK_* constant for those keys that do not generate characters.
    1.45 + */
    1.46 +typedef Sint32 SDL_Keycode;
    1.47 +
    1.48 +#define SDLK_SCANCODE_MASK (1<<30)
    1.49 +#define SDL_SCANCODE_TO_KEYCODE(X)	(X | SDLK_SCANCODE_MASK)
    1.50 +
    1.51 +enum
    1.52 +{
    1.53 +    SDLK_UNKNOWN = 0,
    1.54 +
    1.55 +    SDLK_RETURN = '\r',
    1.56 +    SDLK_ESCAPE = '\033',
    1.57 +    SDLK_BACKSPACE = '\b',
    1.58 +    SDLK_TAB = '\t',
    1.59 +    SDLK_SPACE = ' ',
    1.60 +    SDLK_EXCLAIM = '!',
    1.61 +    SDLK_QUOTEDBL = '"',
    1.62 +    SDLK_HASH = '#',
    1.63 +    SDLK_PERCENT = '%',
    1.64 +    SDLK_DOLLAR = '$',
    1.65 +    SDLK_AMPERSAND = '&',
    1.66 +    SDLK_QUOTE = '\'',
    1.67 +    SDLK_LEFTPAREN = '(',
    1.68 +    SDLK_RIGHTPAREN = ')',
    1.69 +    SDLK_ASTERISK = '*',
    1.70 +    SDLK_PLUS = '+',
    1.71 +    SDLK_COMMA = ',',
    1.72 +    SDLK_MINUS = '-',
    1.73 +    SDLK_PERIOD = '.',
    1.74 +    SDLK_SLASH = '/',
    1.75 +    SDLK_0 = '0',
    1.76 +    SDLK_1 = '1',
    1.77 +    SDLK_2 = '2',
    1.78 +    SDLK_3 = '3',
    1.79 +    SDLK_4 = '4',
    1.80 +    SDLK_5 = '5',
    1.81 +    SDLK_6 = '6',
    1.82 +    SDLK_7 = '7',
    1.83 +    SDLK_8 = '8',
    1.84 +    SDLK_9 = '9',
    1.85 +    SDLK_COLON = ':',
    1.86 +    SDLK_SEMICOLON = ';',
    1.87 +    SDLK_LESS = '<',
    1.88 +    SDLK_EQUALS = '=',
    1.89 +    SDLK_GREATER = '>',
    1.90 +    SDLK_QUESTION = '?',
    1.91 +    SDLK_AT = '@',
    1.92 +    /* 
    1.93 +       Skip uppercase letters
    1.94 +     */
    1.95 +    SDLK_LEFTBRACKET = '[',
    1.96 +    SDLK_BACKSLASH = '\\',
    1.97 +    SDLK_RIGHTBRACKET = ']',
    1.98 +    SDLK_CARET = '^',
    1.99 +    SDLK_UNDERSCORE = '_',
   1.100 +    SDLK_BACKQUOTE = '`',
   1.101 +    SDLK_a = 'a',
   1.102 +    SDLK_b = 'b',
   1.103 +    SDLK_c = 'c',
   1.104 +    SDLK_d = 'd',
   1.105 +    SDLK_e = 'e',
   1.106 +    SDLK_f = 'f',
   1.107 +    SDLK_g = 'g',
   1.108 +    SDLK_h = 'h',
   1.109 +    SDLK_i = 'i',
   1.110 +    SDLK_j = 'j',
   1.111 +    SDLK_k = 'k',
   1.112 +    SDLK_l = 'l',
   1.113 +    SDLK_m = 'm',
   1.114 +    SDLK_n = 'n',
   1.115 +    SDLK_o = 'o',
   1.116 +    SDLK_p = 'p',
   1.117 +    SDLK_q = 'q',
   1.118 +    SDLK_r = 'r',
   1.119 +    SDLK_s = 's',
   1.120 +    SDLK_t = 't',
   1.121 +    SDLK_u = 'u',
   1.122 +    SDLK_v = 'v',
   1.123 +    SDLK_w = 'w',
   1.124 +    SDLK_x = 'x',
   1.125 +    SDLK_y = 'y',
   1.126 +    SDLK_z = 'z',
   1.127 +
   1.128 +    SDLK_CAPSLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK),
   1.129 +
   1.130 +    SDLK_F1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1),
   1.131 +    SDLK_F2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2),
   1.132 +    SDLK_F3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3),
   1.133 +    SDLK_F4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4),
   1.134 +    SDLK_F5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5),
   1.135 +    SDLK_F6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6),
   1.136 +    SDLK_F7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7),
   1.137 +    SDLK_F8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8),
   1.138 +    SDLK_F9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9),
   1.139 +    SDLK_F10 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10),
   1.140 +    SDLK_F11 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11),
   1.141 +    SDLK_F12 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12),
   1.142 +
   1.143 +    SDLK_PRINTSCREEN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN),
   1.144 +    SDLK_SCROLLLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK),
   1.145 +    SDLK_PAUSE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE),
   1.146 +    SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
   1.147 +    SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
   1.148 +    SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
   1.149 +    SDLK_DELETE = '\177',
   1.150 +    SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
   1.151 +    SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
   1.152 +    SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),
   1.153 +    SDLK_LEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT),
   1.154 +    SDLK_DOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN),
   1.155 +    SDLK_UP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP),
   1.156 +
   1.157 +    SDLK_NUMLOCKCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR),
   1.158 +    SDLK_KP_DIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE),
   1.159 +    SDLK_KP_MULTIPLY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY),
   1.160 +    SDLK_KP_MINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS),
   1.161 +    SDLK_KP_PLUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS),
   1.162 +    SDLK_KP_ENTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER),
   1.163 +    SDLK_KP_1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1),
   1.164 +    SDLK_KP_2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2),
   1.165 +    SDLK_KP_3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3),
   1.166 +    SDLK_KP_4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4),
   1.167 +    SDLK_KP_5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5),
   1.168 +    SDLK_KP_6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6),
   1.169 +    SDLK_KP_7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7),
   1.170 +    SDLK_KP_8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8),
   1.171 +    SDLK_KP_9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9),
   1.172 +    SDLK_KP_0 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0),
   1.173 +    SDLK_KP_PERIOD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD),
   1.174 +
   1.175 +    SDLK_APPLICATION = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION),
   1.176 +    SDLK_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER),
   1.177 +    SDLK_KP_EQUALS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS),
   1.178 +    SDLK_F13 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13),
   1.179 +    SDLK_F14 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14),
   1.180 +    SDLK_F15 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15),
   1.181 +    SDLK_F16 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16),
   1.182 +    SDLK_F17 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17),
   1.183 +    SDLK_F18 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18),
   1.184 +    SDLK_F19 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19),
   1.185 +    SDLK_F20 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20),
   1.186 +    SDLK_F21 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21),
   1.187 +    SDLK_F22 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22),
   1.188 +    SDLK_F23 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23),
   1.189 +    SDLK_F24 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24),
   1.190 +    SDLK_EXECUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE),
   1.191 +    SDLK_HELP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP),
   1.192 +    SDLK_MENU = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU),
   1.193 +    SDLK_SELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT),
   1.194 +    SDLK_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP),
   1.195 +    SDLK_AGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN),
   1.196 +    SDLK_UNDO = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO),
   1.197 +    SDLK_CUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT),
   1.198 +    SDLK_COPY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY),
   1.199 +    SDLK_PASTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE),
   1.200 +    SDLK_FIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND),
   1.201 +    SDLK_MUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE),
   1.202 +    SDLK_VOLUMEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP),
   1.203 +    SDLK_VOLUMEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN),
   1.204 +    SDLK_KP_COMMA = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA),
   1.205 +    SDLK_KP_EQUALSAS400 =
   1.206 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400),
   1.207 +
   1.208 +    SDLK_ALTERASE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE),
   1.209 +    SDLK_SYSREQ = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ),
   1.210 +    SDLK_CANCEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL),
   1.211 +    SDLK_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR),
   1.212 +    SDLK_PRIOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR),
   1.213 +    SDLK_RETURN2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2),
   1.214 +    SDLK_SEPARATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR),
   1.215 +    SDLK_OUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT),
   1.216 +    SDLK_OPER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER),
   1.217 +    SDLK_CLEARAGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN),
   1.218 +    SDLK_CRSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL),
   1.219 +    SDLK_EXSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL),
   1.220 +
   1.221 +    SDLK_KP_00 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00),
   1.222 +    SDLK_KP_000 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000),
   1.223 +    SDLK_THOUSANDSSEPARATOR =
   1.224 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR),
   1.225 +    SDLK_DECIMALSEPARATOR =
   1.226 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR),
   1.227 +    SDLK_CURRENCYUNIT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT),
   1.228 +    SDLK_CURRENCYSUBUNIT =
   1.229 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT),
   1.230 +    SDLK_KP_LEFTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN),
   1.231 +    SDLK_KP_RIGHTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN),
   1.232 +    SDLK_KP_LEFTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE),
   1.233 +    SDLK_KP_RIGHTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE),
   1.234 +    SDLK_KP_TAB = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB),
   1.235 +    SDLK_KP_BACKSPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE),
   1.236 +    SDLK_KP_A = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A),
   1.237 +    SDLK_KP_B = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B),
   1.238 +    SDLK_KP_C = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C),
   1.239 +    SDLK_KP_D = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D),
   1.240 +    SDLK_KP_E = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E),
   1.241 +    SDLK_KP_F = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F),
   1.242 +    SDLK_KP_XOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR),
   1.243 +    SDLK_KP_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER),
   1.244 +    SDLK_KP_PERCENT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT),
   1.245 +    SDLK_KP_LESS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS),
   1.246 +    SDLK_KP_GREATER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER),
   1.247 +    SDLK_KP_AMPERSAND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND),
   1.248 +    SDLK_KP_DBLAMPERSAND =
   1.249 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND),
   1.250 +    SDLK_KP_VERTICALBAR =
   1.251 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR),
   1.252 +    SDLK_KP_DBLVERTICALBAR =
   1.253 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR),
   1.254 +    SDLK_KP_COLON = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON),
   1.255 +    SDLK_KP_HASH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH),
   1.256 +    SDLK_KP_SPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE),
   1.257 +    SDLK_KP_AT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT),
   1.258 +    SDLK_KP_EXCLAM = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM),
   1.259 +    SDLK_KP_MEMSTORE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE),
   1.260 +    SDLK_KP_MEMRECALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL),
   1.261 +    SDLK_KP_MEMCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR),
   1.262 +    SDLK_KP_MEMADD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD),
   1.263 +    SDLK_KP_MEMSUBTRACT =
   1.264 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT),
   1.265 +    SDLK_KP_MEMMULTIPLY =
   1.266 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY),
   1.267 +    SDLK_KP_MEMDIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE),
   1.268 +    SDLK_KP_PLUSMINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS),
   1.269 +    SDLK_KP_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR),
   1.270 +    SDLK_KP_CLEARENTRY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY),
   1.271 +    SDLK_KP_BINARY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY),
   1.272 +    SDLK_KP_OCTAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL),
   1.273 +    SDLK_KP_DECIMAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL),
   1.274 +    SDLK_KP_HEXADECIMAL =
   1.275 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL),
   1.276 +
   1.277 +    SDLK_LCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL),
   1.278 +    SDLK_LSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT),
   1.279 +    SDLK_LALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT),
   1.280 +    SDLK_LGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI),
   1.281 +    SDLK_RCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL),
   1.282 +    SDLK_RSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT),
   1.283 +    SDLK_RALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT),
   1.284 +    SDLK_RGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI),
   1.285 +
   1.286 +    SDLK_MODE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE),
   1.287 +
   1.288 +    SDLK_AUDIONEXT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT),
   1.289 +    SDLK_AUDIOPREV = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV),
   1.290 +    SDLK_AUDIOSTOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP),
   1.291 +    SDLK_AUDIOPLAY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY),
   1.292 +    SDLK_AUDIOMUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE),
   1.293 +    SDLK_MEDIASELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT),
   1.294 +    SDLK_WWW = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW),
   1.295 +    SDLK_MAIL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL),
   1.296 +    SDLK_CALCULATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR),
   1.297 +    SDLK_COMPUTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER),
   1.298 +    SDLK_AC_SEARCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH),
   1.299 +    SDLK_AC_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME),
   1.300 +    SDLK_AC_BACK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK),
   1.301 +    SDLK_AC_FORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD),
   1.302 +    SDLK_AC_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP),
   1.303 +    SDLK_AC_REFRESH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH),
   1.304 +    SDLK_AC_BOOKMARKS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS),
   1.305 +
   1.306 +    SDLK_BRIGHTNESSDOWN =
   1.307 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN),
   1.308 +    SDLK_BRIGHTNESSUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP),
   1.309 +    SDLK_DISPLAYSWITCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH),
   1.310 +    SDLK_KBDILLUMTOGGLE =
   1.311 +        SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE),
   1.312 +    SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
   1.313 +    SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
   1.314 +    SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
   1.315 +    SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)
   1.316 +};
   1.317 +
   1.318 +/**
   1.319 + * \brief Enumeration of valid key mods (possibly OR'd together).
   1.320 + */
   1.321 +typedef enum
   1.322 +{
   1.323 +    KMOD_NONE = 0x0000,
   1.324 +    KMOD_LSHIFT = 0x0001,
   1.325 +    KMOD_RSHIFT = 0x0002,
   1.326 +    KMOD_LCTRL = 0x0040,
   1.327 +    KMOD_RCTRL = 0x0080,
   1.328 +    KMOD_LALT = 0x0100,
   1.329 +    KMOD_RALT = 0x0200,
   1.330 +    KMOD_LGUI = 0x0400,
   1.331 +    KMOD_RGUI = 0x0800,
   1.332 +    KMOD_NUM = 0x1000,
   1.333 +    KMOD_CAPS = 0x2000,
   1.334 +    KMOD_MODE = 0x4000,
   1.335 +    KMOD_RESERVED = 0x8000
   1.336 +} SDL_Keymod;
   1.337 +
   1.338 +#define KMOD_CTRL	(KMOD_LCTRL|KMOD_RCTRL)
   1.339 +#define KMOD_SHIFT	(KMOD_LSHIFT|KMOD_RSHIFT)
   1.340 +#define KMOD_ALT	(KMOD_LALT|KMOD_RALT)
   1.341 +#define KMOD_GUI	(KMOD_LGUI|KMOD_RGUI)
   1.342 +
   1.343 +#endif /* _SDL_keycode_h */
   1.344 +
   1.345 +/* vi: set ts=4 sw=4 expandtab: */