SDL_scancode.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. #ifndef _SDL_scancode_h
  2. #define _SDL_scancode_h
  3. #include "SDL_stdinc.h"
  4. typedef enum
  5. {
  6. SDL_SCANCODE_UNKNOWN = 0,
  7. SDL_SCANCODE_A = 4,
  8. SDL_SCANCODE_B = 5,
  9. SDL_SCANCODE_C = 6,
  10. SDL_SCANCODE_D = 7,
  11. SDL_SCANCODE_E = 8,
  12. SDL_SCANCODE_F = 9,
  13. SDL_SCANCODE_G = 10,
  14. SDL_SCANCODE_H = 11,
  15. SDL_SCANCODE_I = 12,
  16. SDL_SCANCODE_J = 13,
  17. SDL_SCANCODE_K = 14,
  18. SDL_SCANCODE_L = 15,
  19. SDL_SCANCODE_M = 16,
  20. SDL_SCANCODE_N = 17,
  21. SDL_SCANCODE_O = 18,
  22. SDL_SCANCODE_P = 19,
  23. SDL_SCANCODE_Q = 20,
  24. SDL_SCANCODE_R = 21,
  25. SDL_SCANCODE_S = 22,
  26. SDL_SCANCODE_T = 23,
  27. SDL_SCANCODE_U = 24,
  28. SDL_SCANCODE_V = 25,
  29. SDL_SCANCODE_W = 26,
  30. SDL_SCANCODE_X = 27,
  31. SDL_SCANCODE_Y = 28,
  32. SDL_SCANCODE_Z = 29,
  33. SDL_SCANCODE_1 = 30,
  34. SDL_SCANCODE_2 = 31,
  35. SDL_SCANCODE_3 = 32,
  36. SDL_SCANCODE_4 = 33,
  37. SDL_SCANCODE_5 = 34,
  38. SDL_SCANCODE_6 = 35,
  39. SDL_SCANCODE_7 = 36,
  40. SDL_SCANCODE_8 = 37,
  41. SDL_SCANCODE_9 = 38,
  42. SDL_SCANCODE_0 = 39,
  43. SDL_SCANCODE_RETURN = 40,
  44. SDL_SCANCODE_ESCAPE = 41,
  45. SDL_SCANCODE_BACKSPACE = 42,
  46. SDL_SCANCODE_TAB = 43,
  47. SDL_SCANCODE_SPACE = 44,
  48. SDL_SCANCODE_MINUS = 45,
  49. SDL_SCANCODE_EQUALS = 46,
  50. SDL_SCANCODE_LEFTBRACKET = 47,
  51. SDL_SCANCODE_RIGHTBRACKET = 48,
  52. SDL_SCANCODE_BACKSLASH = 49,
  53. SDL_SCANCODE_NONUSHASH = 50,
  54. SDL_SCANCODE_SEMICOLON = 51,
  55. SDL_SCANCODE_APOSTROPHE = 52,
  56. SDL_SCANCODE_GRAVE = 53,
  57. SDL_SCANCODE_COMMA = 54,
  58. SDL_SCANCODE_PERIOD = 55,
  59. SDL_SCANCODE_SLASH = 56,
  60. SDL_SCANCODE_CAPSLOCK = 57,
  61. SDL_SCANCODE_F1 = 58,
  62. SDL_SCANCODE_F2 = 59,
  63. SDL_SCANCODE_F3 = 60,
  64. SDL_SCANCODE_F4 = 61,
  65. SDL_SCANCODE_F5 = 62,
  66. SDL_SCANCODE_F6 = 63,
  67. SDL_SCANCODE_F7 = 64,
  68. SDL_SCANCODE_F8 = 65,
  69. SDL_SCANCODE_F9 = 66,
  70. SDL_SCANCODE_F10 = 67,
  71. SDL_SCANCODE_F11 = 68,
  72. SDL_SCANCODE_F12 = 69,
  73. SDL_SCANCODE_PRINTSCREEN = 70,
  74. SDL_SCANCODE_SCROLLLOCK = 71,
  75. SDL_SCANCODE_PAUSE = 72,
  76. SDL_SCANCODE_INSERT = 73,
  77. SDL_SCANCODE_HOME = 74,
  78. SDL_SCANCODE_PAGEUP = 75,
  79. SDL_SCANCODE_DELETE = 76,
  80. SDL_SCANCODE_END = 77,
  81. SDL_SCANCODE_PAGEDOWN = 78,
  82. SDL_SCANCODE_RIGHT = 79,
  83. SDL_SCANCODE_LEFT = 80,
  84. SDL_SCANCODE_DOWN = 81,
  85. SDL_SCANCODE_UP = 82,
  86. SDL_SCANCODE_NUMLOCKCLEAR = 83,
  87. SDL_SCANCODE_KP_DIVIDE = 84,
  88. SDL_SCANCODE_KP_MULTIPLY = 85,
  89. SDL_SCANCODE_KP_MINUS = 86,
  90. SDL_SCANCODE_KP_PLUS = 87,
  91. SDL_SCANCODE_KP_ENTER = 88,
  92. SDL_SCANCODE_KP_1 = 89,
  93. SDL_SCANCODE_KP_2 = 90,
  94. SDL_SCANCODE_KP_3 = 91,
  95. SDL_SCANCODE_KP_4 = 92,
  96. SDL_SCANCODE_KP_5 = 93,
  97. SDL_SCANCODE_KP_6 = 94,
  98. SDL_SCANCODE_KP_7 = 95,
  99. SDL_SCANCODE_KP_8 = 96,
  100. SDL_SCANCODE_KP_9 = 97,
  101. SDL_SCANCODE_KP_0 = 98,
  102. SDL_SCANCODE_KP_PERIOD = 99,
  103. SDL_SCANCODE_NONUSBACKSLASH = 100,
  104. SDL_SCANCODE_APPLICATION = 101,
  105. SDL_SCANCODE_POWER = 102,
  106. SDL_SCANCODE_KP_EQUALS = 103,
  107. SDL_SCANCODE_F13 = 104,
  108. SDL_SCANCODE_F14 = 105,
  109. SDL_SCANCODE_F15 = 106,
  110. SDL_SCANCODE_F16 = 107,
  111. SDL_SCANCODE_F17 = 108,
  112. SDL_SCANCODE_F18 = 109,
  113. SDL_SCANCODE_F19 = 110,
  114. SDL_SCANCODE_F20 = 111,
  115. SDL_SCANCODE_F21 = 112,
  116. SDL_SCANCODE_F22 = 113,
  117. SDL_SCANCODE_F23 = 114,
  118. SDL_SCANCODE_F24 = 115,
  119. SDL_SCANCODE_EXECUTE = 116,
  120. SDL_SCANCODE_HELP = 117,
  121. SDL_SCANCODE_MENU = 118,
  122. SDL_SCANCODE_SELECT = 119,
  123. SDL_SCANCODE_STOP = 120,
  124. SDL_SCANCODE_AGAIN = 121,
  125. SDL_SCANCODE_UNDO = 122,
  126. SDL_SCANCODE_CUT = 123,
  127. SDL_SCANCODE_COPY = 124,
  128. SDL_SCANCODE_PASTE = 125,
  129. SDL_SCANCODE_FIND = 126,
  130. SDL_SCANCODE_MUTE = 127,
  131. SDL_SCANCODE_VOLUMEUP = 128,
  132. SDL_SCANCODE_VOLUMEDOWN = 129,
  133. SDL_SCANCODE_KP_COMMA = 133,
  134. SDL_SCANCODE_KP_EQUALSAS400 = 134,
  135. SDL_SCANCODE_INTERNATIONAL1 = 135,
  136. SDL_SCANCODE_INTERNATIONAL2 = 136,
  137. SDL_SCANCODE_INTERNATIONAL3 = 137,
  138. SDL_SCANCODE_INTERNATIONAL4 = 138,
  139. SDL_SCANCODE_INTERNATIONAL5 = 139,
  140. SDL_SCANCODE_INTERNATIONAL6 = 140,
  141. SDL_SCANCODE_INTERNATIONAL7 = 141,
  142. SDL_SCANCODE_INTERNATIONAL8 = 142,
  143. SDL_SCANCODE_INTERNATIONAL9 = 143,
  144. SDL_SCANCODE_LANG1 = 144,
  145. SDL_SCANCODE_LANG2 = 145,
  146. SDL_SCANCODE_LANG3 = 146,
  147. SDL_SCANCODE_LANG4 = 147,
  148. SDL_SCANCODE_LANG5 = 148,
  149. SDL_SCANCODE_LANG6 = 149,
  150. SDL_SCANCODE_LANG7 = 150,
  151. SDL_SCANCODE_LANG8 = 151,
  152. SDL_SCANCODE_LANG9 = 152,
  153. SDL_SCANCODE_ALTERASE = 153,
  154. SDL_SCANCODE_SYSREQ = 154,
  155. SDL_SCANCODE_CANCEL = 155,
  156. SDL_SCANCODE_CLEAR = 156,
  157. SDL_SCANCODE_PRIOR = 157,
  158. SDL_SCANCODE_RETURN2 = 158,
  159. SDL_SCANCODE_SEPARATOR = 159,
  160. SDL_SCANCODE_OUT = 160,
  161. SDL_SCANCODE_OPER = 161,
  162. SDL_SCANCODE_CLEARAGAIN = 162,
  163. SDL_SCANCODE_CRSEL = 163,
  164. SDL_SCANCODE_EXSEL = 164,
  165. SDL_SCANCODE_KP_00 = 176,
  166. SDL_SCANCODE_KP_000 = 177,
  167. SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
  168. SDL_SCANCODE_DECIMALSEPARATOR = 179,
  169. SDL_SCANCODE_CURRENCYUNIT = 180,
  170. SDL_SCANCODE_CURRENCYSUBUNIT = 181,
  171. SDL_SCANCODE_KP_LEFTPAREN = 182,
  172. SDL_SCANCODE_KP_RIGHTPAREN = 183,
  173. SDL_SCANCODE_KP_LEFTBRACE = 184,
  174. SDL_SCANCODE_KP_RIGHTBRACE = 185,
  175. SDL_SCANCODE_KP_TAB = 186,
  176. SDL_SCANCODE_KP_BACKSPACE = 187,
  177. SDL_SCANCODE_KP_A = 188,
  178. SDL_SCANCODE_KP_B = 189,
  179. SDL_SCANCODE_KP_C = 190,
  180. SDL_SCANCODE_KP_D = 191,
  181. SDL_SCANCODE_KP_E = 192,
  182. SDL_SCANCODE_KP_F = 193,
  183. SDL_SCANCODE_KP_XOR = 194,
  184. SDL_SCANCODE_KP_POWER = 195,
  185. SDL_SCANCODE_KP_PERCENT = 196,
  186. SDL_SCANCODE_KP_LESS = 197,
  187. SDL_SCANCODE_KP_GREATER = 198,
  188. SDL_SCANCODE_KP_AMPERSAND = 199,
  189. SDL_SCANCODE_KP_DBLAMPERSAND = 200,
  190. SDL_SCANCODE_KP_VERTICALBAR = 201,
  191. SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
  192. SDL_SCANCODE_KP_COLON = 203,
  193. SDL_SCANCODE_KP_HASH = 204,
  194. SDL_SCANCODE_KP_SPACE = 205,
  195. SDL_SCANCODE_KP_AT = 206,
  196. SDL_SCANCODE_KP_EXCLAM = 207,
  197. SDL_SCANCODE_KP_MEMSTORE = 208,
  198. SDL_SCANCODE_KP_MEMRECALL = 209,
  199. SDL_SCANCODE_KP_MEMCLEAR = 210,
  200. SDL_SCANCODE_KP_MEMADD = 211,
  201. SDL_SCANCODE_KP_MEMSUBTRACT = 212,
  202. SDL_SCANCODE_KP_MEMMULTIPLY = 213,
  203. SDL_SCANCODE_KP_MEMDIVIDE = 214,
  204. SDL_SCANCODE_KP_PLUSMINUS = 215,
  205. SDL_SCANCODE_KP_CLEAR = 216,
  206. SDL_SCANCODE_KP_CLEARENTRY = 217,
  207. SDL_SCANCODE_KP_BINARY = 218,
  208. SDL_SCANCODE_KP_OCTAL = 219,
  209. SDL_SCANCODE_KP_DECIMAL = 220,
  210. SDL_SCANCODE_KP_HEXADECIMAL = 221,
  211. SDL_SCANCODE_LCTRL = 224,
  212. SDL_SCANCODE_LSHIFT = 225,
  213. SDL_SCANCODE_LALT = 226,
  214. SDL_SCANCODE_LGUI = 227,
  215. SDL_SCANCODE_RCTRL = 228,
  216. SDL_SCANCODE_RSHIFT = 229,
  217. SDL_SCANCODE_RALT = 230,
  218. SDL_SCANCODE_RGUI = 231,
  219. SDL_SCANCODE_MODE = 257,
  220. SDL_SCANCODE_AUDIONEXT = 258,
  221. SDL_SCANCODE_AUDIOPREV = 259,
  222. SDL_SCANCODE_AUDIOSTOP = 260,
  223. SDL_SCANCODE_AUDIOPLAY = 261,
  224. SDL_SCANCODE_AUDIOMUTE = 262,
  225. SDL_SCANCODE_MEDIASELECT = 263,
  226. SDL_SCANCODE_WWW = 264,
  227. SDL_SCANCODE_MAIL = 265,
  228. SDL_SCANCODE_CALCULATOR = 266,
  229. SDL_SCANCODE_COMPUTER = 267,
  230. SDL_SCANCODE_AC_SEARCH = 268,
  231. SDL_SCANCODE_AC_HOME = 269,
  232. SDL_SCANCODE_AC_BACK = 270,
  233. SDL_SCANCODE_AC_FORWARD = 271,
  234. SDL_SCANCODE_AC_STOP = 272,
  235. SDL_SCANCODE_AC_REFRESH = 273,
  236. SDL_SCANCODE_AC_BOOKMARKS = 274,
  237. SDL_SCANCODE_BRIGHTNESSDOWN = 275,
  238. SDL_SCANCODE_BRIGHTNESSUP = 276,
  239. SDL_SCANCODE_DISPLAYSWITCH = 277,
  240. SDL_SCANCODE_KBDILLUMTOGGLE = 278,
  241. SDL_SCANCODE_KBDILLUMDOWN = 279,
  242. SDL_SCANCODE_KBDILLUMUP = 280,
  243. SDL_SCANCODE_EJECT = 281,
  244. SDL_SCANCODE_SLEEP = 282,
  245. SDL_SCANCODE_APP1 = 283,
  246. SDL_SCANCODE_APP2 = 284,
  247. SDL_NUM_SCANCODES = 512
  248. } SDL_Scancode;
  249. #endif