SDL standard library

Dependents:   H261_encoder

Committer:
miruga27
Date:
Wed Sep 07 18:46:53 2016 +0000
Revision:
0:dda4f4550403
7/09/2016;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
miruga27 0:dda4f4550403 1 /*
miruga27 0:dda4f4550403 2 Simple DirectMedia Layer
miruga27 0:dda4f4550403 3 Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
miruga27 0:dda4f4550403 4
miruga27 0:dda4f4550403 5 This software is provided 'as-is', without any express or implied
miruga27 0:dda4f4550403 6 warranty. In no event will the authors be held liable for any damages
miruga27 0:dda4f4550403 7 arising from the use of this software.
miruga27 0:dda4f4550403 8
miruga27 0:dda4f4550403 9 Permission is granted to anyone to use this software for any purpose,
miruga27 0:dda4f4550403 10 including commercial applications, and to alter it and redistribute it
miruga27 0:dda4f4550403 11 freely, subject to the following restrictions:
miruga27 0:dda4f4550403 12
miruga27 0:dda4f4550403 13 1. The origin of this software must not be misrepresented; you must not
miruga27 0:dda4f4550403 14 claim that you wrote the original software. If you use this software
miruga27 0:dda4f4550403 15 in a product, an acknowledgment in the product documentation would be
miruga27 0:dda4f4550403 16 appreciated but is not required.
miruga27 0:dda4f4550403 17 2. Altered source versions must be plainly marked as such, and must not be
miruga27 0:dda4f4550403 18 misrepresented as being the original software.
miruga27 0:dda4f4550403 19 3. This notice may not be removed or altered from any source distribution.
miruga27 0:dda4f4550403 20 */
miruga27 0:dda4f4550403 21
miruga27 0:dda4f4550403 22 /**
miruga27 0:dda4f4550403 23 * \file SDL_scancode.h
miruga27 0:dda4f4550403 24 *
miruga27 0:dda4f4550403 25 * Defines keyboard scancodes.
miruga27 0:dda4f4550403 26 */
miruga27 0:dda4f4550403 27
miruga27 0:dda4f4550403 28 #ifndef _SDL_scancode_h
miruga27 0:dda4f4550403 29 #define _SDL_scancode_h
miruga27 0:dda4f4550403 30
miruga27 0:dda4f4550403 31 #include "SDL_stdinc.h"
miruga27 0:dda4f4550403 32
miruga27 0:dda4f4550403 33 /**
miruga27 0:dda4f4550403 34 * \brief The SDL keyboard scancode representation.
miruga27 0:dda4f4550403 35 *
miruga27 0:dda4f4550403 36 * Values of this type are used to represent keyboard keys, among other places
miruga27 0:dda4f4550403 37 * in the \link SDL_Keysym::scancode key.keysym.scancode \endlink field of the
miruga27 0:dda4f4550403 38 * SDL_Event structure.
miruga27 0:dda4f4550403 39 *
miruga27 0:dda4f4550403 40 * The values in this enumeration are based on the USB usage page standard:
miruga27 0:dda4f4550403 41 * http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf
miruga27 0:dda4f4550403 42 */
miruga27 0:dda4f4550403 43 typedef enum
miruga27 0:dda4f4550403 44 {
miruga27 0:dda4f4550403 45 SDL_SCANCODE_UNKNOWN = 0,
miruga27 0:dda4f4550403 46
miruga27 0:dda4f4550403 47 /**
miruga27 0:dda4f4550403 48 * \name Usage page 0x07
miruga27 0:dda4f4550403 49 *
miruga27 0:dda4f4550403 50 * These values are from usage page 0x07 (USB keyboard page).
miruga27 0:dda4f4550403 51 */
miruga27 0:dda4f4550403 52 /* @{ */
miruga27 0:dda4f4550403 53
miruga27 0:dda4f4550403 54 SDL_SCANCODE_A = 4,
miruga27 0:dda4f4550403 55 SDL_SCANCODE_B = 5,
miruga27 0:dda4f4550403 56 SDL_SCANCODE_C = 6,
miruga27 0:dda4f4550403 57 SDL_SCANCODE_D = 7,
miruga27 0:dda4f4550403 58 SDL_SCANCODE_E = 8,
miruga27 0:dda4f4550403 59 SDL_SCANCODE_F = 9,
miruga27 0:dda4f4550403 60 SDL_SCANCODE_G = 10,
miruga27 0:dda4f4550403 61 SDL_SCANCODE_H = 11,
miruga27 0:dda4f4550403 62 SDL_SCANCODE_I = 12,
miruga27 0:dda4f4550403 63 SDL_SCANCODE_J = 13,
miruga27 0:dda4f4550403 64 SDL_SCANCODE_K = 14,
miruga27 0:dda4f4550403 65 SDL_SCANCODE_L = 15,
miruga27 0:dda4f4550403 66 SDL_SCANCODE_M = 16,
miruga27 0:dda4f4550403 67 SDL_SCANCODE_N = 17,
miruga27 0:dda4f4550403 68 SDL_SCANCODE_O = 18,
miruga27 0:dda4f4550403 69 SDL_SCANCODE_P = 19,
miruga27 0:dda4f4550403 70 SDL_SCANCODE_Q = 20,
miruga27 0:dda4f4550403 71 SDL_SCANCODE_R = 21,
miruga27 0:dda4f4550403 72 SDL_SCANCODE_S = 22,
miruga27 0:dda4f4550403 73 SDL_SCANCODE_T = 23,
miruga27 0:dda4f4550403 74 SDL_SCANCODE_U = 24,
miruga27 0:dda4f4550403 75 SDL_SCANCODE_V = 25,
miruga27 0:dda4f4550403 76 SDL_SCANCODE_W = 26,
miruga27 0:dda4f4550403 77 SDL_SCANCODE_X = 27,
miruga27 0:dda4f4550403 78 SDL_SCANCODE_Y = 28,
miruga27 0:dda4f4550403 79 SDL_SCANCODE_Z = 29,
miruga27 0:dda4f4550403 80
miruga27 0:dda4f4550403 81 SDL_SCANCODE_1 = 30,
miruga27 0:dda4f4550403 82 SDL_SCANCODE_2 = 31,
miruga27 0:dda4f4550403 83 SDL_SCANCODE_3 = 32,
miruga27 0:dda4f4550403 84 SDL_SCANCODE_4 = 33,
miruga27 0:dda4f4550403 85 SDL_SCANCODE_5 = 34,
miruga27 0:dda4f4550403 86 SDL_SCANCODE_6 = 35,
miruga27 0:dda4f4550403 87 SDL_SCANCODE_7 = 36,
miruga27 0:dda4f4550403 88 SDL_SCANCODE_8 = 37,
miruga27 0:dda4f4550403 89 SDL_SCANCODE_9 = 38,
miruga27 0:dda4f4550403 90 SDL_SCANCODE_0 = 39,
miruga27 0:dda4f4550403 91
miruga27 0:dda4f4550403 92 SDL_SCANCODE_RETURN = 40,
miruga27 0:dda4f4550403 93 SDL_SCANCODE_ESCAPE = 41,
miruga27 0:dda4f4550403 94 SDL_SCANCODE_BACKSPACE = 42,
miruga27 0:dda4f4550403 95 SDL_SCANCODE_TAB = 43,
miruga27 0:dda4f4550403 96 SDL_SCANCODE_SPACE = 44,
miruga27 0:dda4f4550403 97
miruga27 0:dda4f4550403 98 SDL_SCANCODE_MINUS = 45,
miruga27 0:dda4f4550403 99 SDL_SCANCODE_EQUALS = 46,
miruga27 0:dda4f4550403 100 SDL_SCANCODE_LEFTBRACKET = 47,
miruga27 0:dda4f4550403 101 SDL_SCANCODE_RIGHTBRACKET = 48,
miruga27 0:dda4f4550403 102 SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return
miruga27 0:dda4f4550403 103 * key on ISO keyboards and at the right end
miruga27 0:dda4f4550403 104 * of the QWERTY row on ANSI keyboards.
miruga27 0:dda4f4550403 105 * Produces REVERSE SOLIDUS (backslash) and
miruga27 0:dda4f4550403 106 * VERTICAL LINE in a US layout, REVERSE
miruga27 0:dda4f4550403 107 * SOLIDUS and VERTICAL LINE in a UK Mac
miruga27 0:dda4f4550403 108 * layout, NUMBER SIGN and TILDE in a UK
miruga27 0:dda4f4550403 109 * Windows layout, DOLLAR SIGN and POUND SIGN
miruga27 0:dda4f4550403 110 * in a Swiss German layout, NUMBER SIGN and
miruga27 0:dda4f4550403 111 * APOSTROPHE in a German layout, GRAVE
miruga27 0:dda4f4550403 112 * ACCENT and POUND SIGN in a French Mac
miruga27 0:dda4f4550403 113 * layout, and ASTERISK and MICRO SIGN in a
miruga27 0:dda4f4550403 114 * French Windows layout.
miruga27 0:dda4f4550403 115 */
miruga27 0:dda4f4550403 116 SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code
miruga27 0:dda4f4550403 117 * instead of 49 for the same key, but all
miruga27 0:dda4f4550403 118 * OSes I've seen treat the two codes
miruga27 0:dda4f4550403 119 * identically. So, as an implementor, unless
miruga27 0:dda4f4550403 120 * your keyboard generates both of those
miruga27 0:dda4f4550403 121 * codes and your OS treats them differently,
miruga27 0:dda4f4550403 122 * you should generate SDL_SCANCODE_BACKSLASH
miruga27 0:dda4f4550403 123 * instead of this code. As a user, you
miruga27 0:dda4f4550403 124 * should not rely on this code because SDL
miruga27 0:dda4f4550403 125 * will never generate it with most (all?)
miruga27 0:dda4f4550403 126 * keyboards.
miruga27 0:dda4f4550403 127 */
miruga27 0:dda4f4550403 128 SDL_SCANCODE_SEMICOLON = 51,
miruga27 0:dda4f4550403 129 SDL_SCANCODE_APOSTROPHE = 52,
miruga27 0:dda4f4550403 130 SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI
miruga27 0:dda4f4550403 131 * and ISO keyboards). Produces GRAVE ACCENT and
miruga27 0:dda4f4550403 132 * TILDE in a US Windows layout and in US and UK
miruga27 0:dda4f4550403 133 * Mac layouts on ANSI keyboards, GRAVE ACCENT
miruga27 0:dda4f4550403 134 * and NOT SIGN in a UK Windows layout, SECTION
miruga27 0:dda4f4550403 135 * SIGN and PLUS-MINUS SIGN in US and UK Mac
miruga27 0:dda4f4550403 136 * layouts on ISO keyboards, SECTION SIGN and
miruga27 0:dda4f4550403 137 * DEGREE SIGN in a Swiss German layout (Mac:
miruga27 0:dda4f4550403 138 * only on ISO keyboards), CIRCUMFLEX ACCENT and
miruga27 0:dda4f4550403 139 * DEGREE SIGN in a German layout (Mac: only on
miruga27 0:dda4f4550403 140 * ISO keyboards), SUPERSCRIPT TWO and TILDE in a
miruga27 0:dda4f4550403 141 * French Windows layout, COMMERCIAL AT and
miruga27 0:dda4f4550403 142 * NUMBER SIGN in a French Mac layout on ISO
miruga27 0:dda4f4550403 143 * keyboards, and LESS-THAN SIGN and GREATER-THAN
miruga27 0:dda4f4550403 144 * SIGN in a Swiss German, German, or French Mac
miruga27 0:dda4f4550403 145 * layout on ANSI keyboards.
miruga27 0:dda4f4550403 146 */
miruga27 0:dda4f4550403 147 SDL_SCANCODE_COMMA = 54,
miruga27 0:dda4f4550403 148 SDL_SCANCODE_PERIOD = 55,
miruga27 0:dda4f4550403 149 SDL_SCANCODE_SLASH = 56,
miruga27 0:dda4f4550403 150
miruga27 0:dda4f4550403 151 SDL_SCANCODE_CAPSLOCK = 57,
miruga27 0:dda4f4550403 152
miruga27 0:dda4f4550403 153 SDL_SCANCODE_F1 = 58,
miruga27 0:dda4f4550403 154 SDL_SCANCODE_F2 = 59,
miruga27 0:dda4f4550403 155 SDL_SCANCODE_F3 = 60,
miruga27 0:dda4f4550403 156 SDL_SCANCODE_F4 = 61,
miruga27 0:dda4f4550403 157 SDL_SCANCODE_F5 = 62,
miruga27 0:dda4f4550403 158 SDL_SCANCODE_F6 = 63,
miruga27 0:dda4f4550403 159 SDL_SCANCODE_F7 = 64,
miruga27 0:dda4f4550403 160 SDL_SCANCODE_F8 = 65,
miruga27 0:dda4f4550403 161 SDL_SCANCODE_F9 = 66,
miruga27 0:dda4f4550403 162 SDL_SCANCODE_F10 = 67,
miruga27 0:dda4f4550403 163 SDL_SCANCODE_F11 = 68,
miruga27 0:dda4f4550403 164 SDL_SCANCODE_F12 = 69,
miruga27 0:dda4f4550403 165
miruga27 0:dda4f4550403 166 SDL_SCANCODE_PRINTSCREEN = 70,
miruga27 0:dda4f4550403 167 SDL_SCANCODE_SCROLLLOCK = 71,
miruga27 0:dda4f4550403 168 SDL_SCANCODE_PAUSE = 72,
miruga27 0:dda4f4550403 169 SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but
miruga27 0:dda4f4550403 170 does send code 73, not 117) */
miruga27 0:dda4f4550403 171 SDL_SCANCODE_HOME = 74,
miruga27 0:dda4f4550403 172 SDL_SCANCODE_PAGEUP = 75,
miruga27 0:dda4f4550403 173 SDL_SCANCODE_DELETE = 76,
miruga27 0:dda4f4550403 174 SDL_SCANCODE_END = 77,
miruga27 0:dda4f4550403 175 SDL_SCANCODE_PAGEDOWN = 78,
miruga27 0:dda4f4550403 176 SDL_SCANCODE_RIGHT = 79,
miruga27 0:dda4f4550403 177 SDL_SCANCODE_LEFT = 80,
miruga27 0:dda4f4550403 178 SDL_SCANCODE_DOWN = 81,
miruga27 0:dda4f4550403 179 SDL_SCANCODE_UP = 82,
miruga27 0:dda4f4550403 180
miruga27 0:dda4f4550403 181 SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards
miruga27 0:dda4f4550403 182 */
miruga27 0:dda4f4550403 183 SDL_SCANCODE_KP_DIVIDE = 84,
miruga27 0:dda4f4550403 184 SDL_SCANCODE_KP_MULTIPLY = 85,
miruga27 0:dda4f4550403 185 SDL_SCANCODE_KP_MINUS = 86,
miruga27 0:dda4f4550403 186 SDL_SCANCODE_KP_PLUS = 87,
miruga27 0:dda4f4550403 187 SDL_SCANCODE_KP_ENTER = 88,
miruga27 0:dda4f4550403 188 SDL_SCANCODE_KP_1 = 89,
miruga27 0:dda4f4550403 189 SDL_SCANCODE_KP_2 = 90,
miruga27 0:dda4f4550403 190 SDL_SCANCODE_KP_3 = 91,
miruga27 0:dda4f4550403 191 SDL_SCANCODE_KP_4 = 92,
miruga27 0:dda4f4550403 192 SDL_SCANCODE_KP_5 = 93,
miruga27 0:dda4f4550403 193 SDL_SCANCODE_KP_6 = 94,
miruga27 0:dda4f4550403 194 SDL_SCANCODE_KP_7 = 95,
miruga27 0:dda4f4550403 195 SDL_SCANCODE_KP_8 = 96,
miruga27 0:dda4f4550403 196 SDL_SCANCODE_KP_9 = 97,
miruga27 0:dda4f4550403 197 SDL_SCANCODE_KP_0 = 98,
miruga27 0:dda4f4550403 198 SDL_SCANCODE_KP_PERIOD = 99,
miruga27 0:dda4f4550403 199
miruga27 0:dda4f4550403 200 SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO
miruga27 0:dda4f4550403 201 * keyboards have over ANSI ones,
miruga27 0:dda4f4550403 202 * located between left shift and Y.
miruga27 0:dda4f4550403 203 * Produces GRAVE ACCENT and TILDE in a
miruga27 0:dda4f4550403 204 * US or UK Mac layout, REVERSE SOLIDUS
miruga27 0:dda4f4550403 205 * (backslash) and VERTICAL LINE in a
miruga27 0:dda4f4550403 206 * US or UK Windows layout, and
miruga27 0:dda4f4550403 207 * LESS-THAN SIGN and GREATER-THAN SIGN
miruga27 0:dda4f4550403 208 * in a Swiss German, German, or French
miruga27 0:dda4f4550403 209 * layout. */
miruga27 0:dda4f4550403 210 SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */
miruga27 0:dda4f4550403 211 SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag,
miruga27 0:dda4f4550403 212 * not a physical key - but some Mac keyboards
miruga27 0:dda4f4550403 213 * do have a power key. */
miruga27 0:dda4f4550403 214 SDL_SCANCODE_KP_EQUALS = 103,
miruga27 0:dda4f4550403 215 SDL_SCANCODE_F13 = 104,
miruga27 0:dda4f4550403 216 SDL_SCANCODE_F14 = 105,
miruga27 0:dda4f4550403 217 SDL_SCANCODE_F15 = 106,
miruga27 0:dda4f4550403 218 SDL_SCANCODE_F16 = 107,
miruga27 0:dda4f4550403 219 SDL_SCANCODE_F17 = 108,
miruga27 0:dda4f4550403 220 SDL_SCANCODE_F18 = 109,
miruga27 0:dda4f4550403 221 SDL_SCANCODE_F19 = 110,
miruga27 0:dda4f4550403 222 SDL_SCANCODE_F20 = 111,
miruga27 0:dda4f4550403 223 SDL_SCANCODE_F21 = 112,
miruga27 0:dda4f4550403 224 SDL_SCANCODE_F22 = 113,
miruga27 0:dda4f4550403 225 SDL_SCANCODE_F23 = 114,
miruga27 0:dda4f4550403 226 SDL_SCANCODE_F24 = 115,
miruga27 0:dda4f4550403 227 SDL_SCANCODE_EXECUTE = 116,
miruga27 0:dda4f4550403 228 SDL_SCANCODE_HELP = 117,
miruga27 0:dda4f4550403 229 SDL_SCANCODE_MENU = 118,
miruga27 0:dda4f4550403 230 SDL_SCANCODE_SELECT = 119,
miruga27 0:dda4f4550403 231 SDL_SCANCODE_STOP = 120,
miruga27 0:dda4f4550403 232 SDL_SCANCODE_AGAIN = 121, /**< redo */
miruga27 0:dda4f4550403 233 SDL_SCANCODE_UNDO = 122,
miruga27 0:dda4f4550403 234 SDL_SCANCODE_CUT = 123,
miruga27 0:dda4f4550403 235 SDL_SCANCODE_COPY = 124,
miruga27 0:dda4f4550403 236 SDL_SCANCODE_PASTE = 125,
miruga27 0:dda4f4550403 237 SDL_SCANCODE_FIND = 126,
miruga27 0:dda4f4550403 238 SDL_SCANCODE_MUTE = 127,
miruga27 0:dda4f4550403 239 SDL_SCANCODE_VOLUMEUP = 128,
miruga27 0:dda4f4550403 240 SDL_SCANCODE_VOLUMEDOWN = 129,
miruga27 0:dda4f4550403 241 /* not sure whether there's a reason to enable these */
miruga27 0:dda4f4550403 242 /* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
miruga27 0:dda4f4550403 243 /* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
miruga27 0:dda4f4550403 244 /* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
miruga27 0:dda4f4550403 245 SDL_SCANCODE_KP_COMMA = 133,
miruga27 0:dda4f4550403 246 SDL_SCANCODE_KP_EQUALSAS400 = 134,
miruga27 0:dda4f4550403 247
miruga27 0:dda4f4550403 248 SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see
miruga27 0:dda4f4550403 249 footnotes in USB doc */
miruga27 0:dda4f4550403 250 SDL_SCANCODE_INTERNATIONAL2 = 136,
miruga27 0:dda4f4550403 251 SDL_SCANCODE_INTERNATIONAL3 = 137, /**< Yen */
miruga27 0:dda4f4550403 252 SDL_SCANCODE_INTERNATIONAL4 = 138,
miruga27 0:dda4f4550403 253 SDL_SCANCODE_INTERNATIONAL5 = 139,
miruga27 0:dda4f4550403 254 SDL_SCANCODE_INTERNATIONAL6 = 140,
miruga27 0:dda4f4550403 255 SDL_SCANCODE_INTERNATIONAL7 = 141,
miruga27 0:dda4f4550403 256 SDL_SCANCODE_INTERNATIONAL8 = 142,
miruga27 0:dda4f4550403 257 SDL_SCANCODE_INTERNATIONAL9 = 143,
miruga27 0:dda4f4550403 258 SDL_SCANCODE_LANG1 = 144, /**< Hangul/English toggle */
miruga27 0:dda4f4550403 259 SDL_SCANCODE_LANG2 = 145, /**< Hanja conversion */
miruga27 0:dda4f4550403 260 SDL_SCANCODE_LANG3 = 146, /**< Katakana */
miruga27 0:dda4f4550403 261 SDL_SCANCODE_LANG4 = 147, /**< Hiragana */
miruga27 0:dda4f4550403 262 SDL_SCANCODE_LANG5 = 148, /**< Zenkaku/Hankaku */
miruga27 0:dda4f4550403 263 SDL_SCANCODE_LANG6 = 149, /**< reserved */
miruga27 0:dda4f4550403 264 SDL_SCANCODE_LANG7 = 150, /**< reserved */
miruga27 0:dda4f4550403 265 SDL_SCANCODE_LANG8 = 151, /**< reserved */
miruga27 0:dda4f4550403 266 SDL_SCANCODE_LANG9 = 152, /**< reserved */
miruga27 0:dda4f4550403 267
miruga27 0:dda4f4550403 268 SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
miruga27 0:dda4f4550403 269 SDL_SCANCODE_SYSREQ = 154,
miruga27 0:dda4f4550403 270 SDL_SCANCODE_CANCEL = 155,
miruga27 0:dda4f4550403 271 SDL_SCANCODE_CLEAR = 156,
miruga27 0:dda4f4550403 272 SDL_SCANCODE_PRIOR = 157,
miruga27 0:dda4f4550403 273 SDL_SCANCODE_RETURN2 = 158,
miruga27 0:dda4f4550403 274 SDL_SCANCODE_SEPARATOR = 159,
miruga27 0:dda4f4550403 275 SDL_SCANCODE_OUT = 160,
miruga27 0:dda4f4550403 276 SDL_SCANCODE_OPER = 161,
miruga27 0:dda4f4550403 277 SDL_SCANCODE_CLEARAGAIN = 162,
miruga27 0:dda4f4550403 278 SDL_SCANCODE_CRSEL = 163,
miruga27 0:dda4f4550403 279 SDL_SCANCODE_EXSEL = 164,
miruga27 0:dda4f4550403 280
miruga27 0:dda4f4550403 281 SDL_SCANCODE_KP_00 = 176,
miruga27 0:dda4f4550403 282 SDL_SCANCODE_KP_000 = 177,
miruga27 0:dda4f4550403 283 SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
miruga27 0:dda4f4550403 284 SDL_SCANCODE_DECIMALSEPARATOR = 179,
miruga27 0:dda4f4550403 285 SDL_SCANCODE_CURRENCYUNIT = 180,
miruga27 0:dda4f4550403 286 SDL_SCANCODE_CURRENCYSUBUNIT = 181,
miruga27 0:dda4f4550403 287 SDL_SCANCODE_KP_LEFTPAREN = 182,
miruga27 0:dda4f4550403 288 SDL_SCANCODE_KP_RIGHTPAREN = 183,
miruga27 0:dda4f4550403 289 SDL_SCANCODE_KP_LEFTBRACE = 184,
miruga27 0:dda4f4550403 290 SDL_SCANCODE_KP_RIGHTBRACE = 185,
miruga27 0:dda4f4550403 291 SDL_SCANCODE_KP_TAB = 186,
miruga27 0:dda4f4550403 292 SDL_SCANCODE_KP_BACKSPACE = 187,
miruga27 0:dda4f4550403 293 SDL_SCANCODE_KP_A = 188,
miruga27 0:dda4f4550403 294 SDL_SCANCODE_KP_B = 189,
miruga27 0:dda4f4550403 295 SDL_SCANCODE_KP_C = 190,
miruga27 0:dda4f4550403 296 SDL_SCANCODE_KP_D = 191,
miruga27 0:dda4f4550403 297 SDL_SCANCODE_KP_E = 192,
miruga27 0:dda4f4550403 298 SDL_SCANCODE_KP_F = 193,
miruga27 0:dda4f4550403 299 SDL_SCANCODE_KP_XOR = 194,
miruga27 0:dda4f4550403 300 SDL_SCANCODE_KP_POWER = 195,
miruga27 0:dda4f4550403 301 SDL_SCANCODE_KP_PERCENT = 196,
miruga27 0:dda4f4550403 302 SDL_SCANCODE_KP_LESS = 197,
miruga27 0:dda4f4550403 303 SDL_SCANCODE_KP_GREATER = 198,
miruga27 0:dda4f4550403 304 SDL_SCANCODE_KP_AMPERSAND = 199,
miruga27 0:dda4f4550403 305 SDL_SCANCODE_KP_DBLAMPERSAND = 200,
miruga27 0:dda4f4550403 306 SDL_SCANCODE_KP_VERTICALBAR = 201,
miruga27 0:dda4f4550403 307 SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
miruga27 0:dda4f4550403 308 SDL_SCANCODE_KP_COLON = 203,
miruga27 0:dda4f4550403 309 SDL_SCANCODE_KP_HASH = 204,
miruga27 0:dda4f4550403 310 SDL_SCANCODE_KP_SPACE = 205,
miruga27 0:dda4f4550403 311 SDL_SCANCODE_KP_AT = 206,
miruga27 0:dda4f4550403 312 SDL_SCANCODE_KP_EXCLAM = 207,
miruga27 0:dda4f4550403 313 SDL_SCANCODE_KP_MEMSTORE = 208,
miruga27 0:dda4f4550403 314 SDL_SCANCODE_KP_MEMRECALL = 209,
miruga27 0:dda4f4550403 315 SDL_SCANCODE_KP_MEMCLEAR = 210,
miruga27 0:dda4f4550403 316 SDL_SCANCODE_KP_MEMADD = 211,
miruga27 0:dda4f4550403 317 SDL_SCANCODE_KP_MEMSUBTRACT = 212,
miruga27 0:dda4f4550403 318 SDL_SCANCODE_KP_MEMMULTIPLY = 213,
miruga27 0:dda4f4550403 319 SDL_SCANCODE_KP_MEMDIVIDE = 214,
miruga27 0:dda4f4550403 320 SDL_SCANCODE_KP_PLUSMINUS = 215,
miruga27 0:dda4f4550403 321 SDL_SCANCODE_KP_CLEAR = 216,
miruga27 0:dda4f4550403 322 SDL_SCANCODE_KP_CLEARENTRY = 217,
miruga27 0:dda4f4550403 323 SDL_SCANCODE_KP_BINARY = 218,
miruga27 0:dda4f4550403 324 SDL_SCANCODE_KP_OCTAL = 219,
miruga27 0:dda4f4550403 325 SDL_SCANCODE_KP_DECIMAL = 220,
miruga27 0:dda4f4550403 326 SDL_SCANCODE_KP_HEXADECIMAL = 221,
miruga27 0:dda4f4550403 327
miruga27 0:dda4f4550403 328 SDL_SCANCODE_LCTRL = 224,
miruga27 0:dda4f4550403 329 SDL_SCANCODE_LSHIFT = 225,
miruga27 0:dda4f4550403 330 SDL_SCANCODE_LALT = 226, /**< alt, option */
miruga27 0:dda4f4550403 331 SDL_SCANCODE_LGUI = 227, /**< windows, command (apple), meta */
miruga27 0:dda4f4550403 332 SDL_SCANCODE_RCTRL = 228,
miruga27 0:dda4f4550403 333 SDL_SCANCODE_RSHIFT = 229,
miruga27 0:dda4f4550403 334 SDL_SCANCODE_RALT = 230, /**< alt gr, option */
miruga27 0:dda4f4550403 335 SDL_SCANCODE_RGUI = 231, /**< windows, command (apple), meta */
miruga27 0:dda4f4550403 336
miruga27 0:dda4f4550403 337 SDL_SCANCODE_MODE = 257, /**< I'm not sure if this is really not covered
miruga27 0:dda4f4550403 338 * by any of the above, but since there's a
miruga27 0:dda4f4550403 339 * special KMOD_MODE for it I'm adding it here
miruga27 0:dda4f4550403 340 */
miruga27 0:dda4f4550403 341
miruga27 0:dda4f4550403 342 /* @} *//* Usage page 0x07 */
miruga27 0:dda4f4550403 343
miruga27 0:dda4f4550403 344 /**
miruga27 0:dda4f4550403 345 * \name Usage page 0x0C
miruga27 0:dda4f4550403 346 *
miruga27 0:dda4f4550403 347 * These values are mapped from usage page 0x0C (USB consumer page).
miruga27 0:dda4f4550403 348 */
miruga27 0:dda4f4550403 349 /* @{ */
miruga27 0:dda4f4550403 350
miruga27 0:dda4f4550403 351 SDL_SCANCODE_AUDIONEXT = 258,
miruga27 0:dda4f4550403 352 SDL_SCANCODE_AUDIOPREV = 259,
miruga27 0:dda4f4550403 353 SDL_SCANCODE_AUDIOSTOP = 260,
miruga27 0:dda4f4550403 354 SDL_SCANCODE_AUDIOPLAY = 261,
miruga27 0:dda4f4550403 355 SDL_SCANCODE_AUDIOMUTE = 262,
miruga27 0:dda4f4550403 356 SDL_SCANCODE_MEDIASELECT = 263,
miruga27 0:dda4f4550403 357 SDL_SCANCODE_WWW = 264,
miruga27 0:dda4f4550403 358 SDL_SCANCODE_MAIL = 265,
miruga27 0:dda4f4550403 359 SDL_SCANCODE_CALCULATOR = 266,
miruga27 0:dda4f4550403 360 SDL_SCANCODE_COMPUTER = 267,
miruga27 0:dda4f4550403 361 SDL_SCANCODE_AC_SEARCH = 268,
miruga27 0:dda4f4550403 362 SDL_SCANCODE_AC_HOME = 269,
miruga27 0:dda4f4550403 363 SDL_SCANCODE_AC_BACK = 270,
miruga27 0:dda4f4550403 364 SDL_SCANCODE_AC_FORWARD = 271,
miruga27 0:dda4f4550403 365 SDL_SCANCODE_AC_STOP = 272,
miruga27 0:dda4f4550403 366 SDL_SCANCODE_AC_REFRESH = 273,
miruga27 0:dda4f4550403 367 SDL_SCANCODE_AC_BOOKMARKS = 274,
miruga27 0:dda4f4550403 368
miruga27 0:dda4f4550403 369 /* @} *//* Usage page 0x0C */
miruga27 0:dda4f4550403 370
miruga27 0:dda4f4550403 371 /**
miruga27 0:dda4f4550403 372 * \name Walther keys
miruga27 0:dda4f4550403 373 *
miruga27 0:dda4f4550403 374 * These are values that Christian Walther added (for mac keyboard?).
miruga27 0:dda4f4550403 375 */
miruga27 0:dda4f4550403 376 /* @{ */
miruga27 0:dda4f4550403 377
miruga27 0:dda4f4550403 378 SDL_SCANCODE_BRIGHTNESSDOWN = 275,
miruga27 0:dda4f4550403 379 SDL_SCANCODE_BRIGHTNESSUP = 276,
miruga27 0:dda4f4550403 380 SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display
miruga27 0:dda4f4550403 381 switch, video mode switch */
miruga27 0:dda4f4550403 382 SDL_SCANCODE_KBDILLUMTOGGLE = 278,
miruga27 0:dda4f4550403 383 SDL_SCANCODE_KBDILLUMDOWN = 279,
miruga27 0:dda4f4550403 384 SDL_SCANCODE_KBDILLUMUP = 280,
miruga27 0:dda4f4550403 385 SDL_SCANCODE_EJECT = 281,
miruga27 0:dda4f4550403 386 SDL_SCANCODE_SLEEP = 282,
miruga27 0:dda4f4550403 387
miruga27 0:dda4f4550403 388 SDL_SCANCODE_APP1 = 283,
miruga27 0:dda4f4550403 389 SDL_SCANCODE_APP2 = 284,
miruga27 0:dda4f4550403 390
miruga27 0:dda4f4550403 391 /* @} *//* Walther keys */
miruga27 0:dda4f4550403 392
miruga27 0:dda4f4550403 393 /* Add any other keys here. */
miruga27 0:dda4f4550403 394
miruga27 0:dda4f4550403 395 SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
miruga27 0:dda4f4550403 396 for array bounds */
miruga27 0:dda4f4550403 397 } SDL_Scancode;
miruga27 0:dda4f4550403 398
miruga27 0:dda4f4550403 399 #endif /* _SDL_scancode_h */
miruga27 0:dda4f4550403 400
miruga27 0:dda4f4550403 401 /* vi: set ts=4 sw=4 expandtab: */