native_audio 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/assets/include/SDL2/SDL.h +233 -233
  3. data/assets/include/SDL2/SDL_assert.h +326 -326
  4. data/assets/include/SDL2/SDL_atomic.h +415 -415
  5. data/assets/include/SDL2/SDL_audio.h +1500 -1500
  6. data/assets/include/SDL2/SDL_bits.h +126 -126
  7. data/assets/include/SDL2/SDL_blendmode.h +198 -198
  8. data/assets/include/SDL2/SDL_clipboard.h +141 -141
  9. data/assets/include/SDL2/SDL_config.h +61 -61
  10. data/assets/include/SDL2/SDL_config_android.h +194 -194
  11. data/assets/include/SDL2/SDL_config_emscripten.h +218 -218
  12. data/assets/include/SDL2/SDL_config_iphoneos.h +217 -217
  13. data/assets/include/SDL2/SDL_config_macosx.h +277 -277
  14. data/assets/include/SDL2/SDL_config_minimal.h +95 -95
  15. data/assets/include/SDL2/SDL_config_ngage.h +89 -89
  16. data/assets/include/SDL2/SDL_config_os2.h +207 -207
  17. data/assets/include/SDL2/SDL_config_pandora.h +141 -141
  18. data/assets/include/SDL2/SDL_config_windows.h +331 -331
  19. data/assets/include/SDL2/SDL_config_wingdk.h +253 -253
  20. data/assets/include/SDL2/SDL_config_winrt.h +220 -220
  21. data/assets/include/SDL2/SDL_config_xbox.h +235 -235
  22. data/assets/include/SDL2/SDL_copying.h +20 -20
  23. data/assets/include/SDL2/SDL_cpuinfo.h +594 -594
  24. data/assets/include/SDL2/SDL_egl.h +2352 -2352
  25. data/assets/include/SDL2/SDL_endian.h +348 -348
  26. data/assets/include/SDL2/SDL_error.h +163 -163
  27. data/assets/include/SDL2/SDL_events.h +1166 -1166
  28. data/assets/include/SDL2/SDL_filesystem.h +149 -149
  29. data/assets/include/SDL2/SDL_gamecontroller.h +1074 -1074
  30. data/assets/include/SDL2/SDL_gesture.h +117 -117
  31. data/assets/include/SDL2/SDL_guid.h +100 -100
  32. data/assets/include/SDL2/SDL_haptic.h +1341 -1341
  33. data/assets/include/SDL2/SDL_hidapi.h +451 -451
  34. data/assets/include/SDL2/SDL_hints.h +2569 -2569
  35. data/assets/include/SDL2/SDL_image.h +2173 -2173
  36. data/assets/include/SDL2/SDL_joystick.h +1066 -1066
  37. data/assets/include/SDL2/SDL_keyboard.h +353 -353
  38. data/assets/include/SDL2/SDL_keycode.h +358 -358
  39. data/assets/include/SDL2/SDL_loadso.h +115 -115
  40. data/assets/include/SDL2/SDL_locale.h +103 -103
  41. data/assets/include/SDL2/SDL_log.h +404 -404
  42. data/assets/include/SDL2/SDL_main.h +275 -275
  43. data/assets/include/SDL2/SDL_messagebox.h +193 -193
  44. data/assets/include/SDL2/SDL_metal.h +113 -113
  45. data/assets/include/SDL2/SDL_misc.h +79 -79
  46. data/assets/include/SDL2/SDL_mixer.h +2784 -2784
  47. data/assets/include/SDL2/SDL_mouse.h +465 -465
  48. data/assets/include/SDL2/SDL_mutex.h +471 -471
  49. data/assets/include/SDL2/SDL_name.h +33 -33
  50. data/assets/include/SDL2/SDL_opengl.h +2132 -2132
  51. data/assets/include/SDL2/SDL_opengl_glext.h +13209 -13209
  52. data/assets/include/SDL2/SDL_opengles.h +39 -39
  53. data/assets/include/SDL2/SDL_opengles2.h +52 -52
  54. data/assets/include/SDL2/SDL_opengles2_gl2.h +656 -656
  55. data/assets/include/SDL2/SDL_opengles2_gl2ext.h +4033 -4033
  56. data/assets/include/SDL2/SDL_opengles2_gl2platform.h +27 -27
  57. data/assets/include/SDL2/SDL_opengles2_khrplatform.h +311 -311
  58. data/assets/include/SDL2/SDL_pixels.h +644 -644
  59. data/assets/include/SDL2/SDL_platform.h +261 -261
  60. data/assets/include/SDL2/SDL_power.h +88 -88
  61. data/assets/include/SDL2/SDL_quit.h +58 -58
  62. data/assets/include/SDL2/SDL_rect.h +376 -376
  63. data/assets/include/SDL2/SDL_render.h +1919 -1919
  64. data/assets/include/SDL2/SDL_revision.h +6 -6
  65. data/assets/include/SDL2/SDL_rwops.h +841 -841
  66. data/assets/include/SDL2/SDL_scancode.h +438 -438
  67. data/assets/include/SDL2/SDL_sensor.h +322 -322
  68. data/assets/include/SDL2/SDL_shape.h +155 -155
  69. data/assets/include/SDL2/SDL_stdinc.h +830 -830
  70. data/assets/include/SDL2/SDL_surface.h +997 -997
  71. data/assets/include/SDL2/SDL_system.h +623 -623
  72. data/assets/include/SDL2/SDL_syswm.h +386 -386
  73. data/assets/include/SDL2/SDL_test.h +69 -69
  74. data/assets/include/SDL2/SDL_test_assert.h +105 -105
  75. data/assets/include/SDL2/SDL_test_common.h +236 -236
  76. data/assets/include/SDL2/SDL_test_compare.h +69 -69
  77. data/assets/include/SDL2/SDL_test_crc32.h +124 -124
  78. data/assets/include/SDL2/SDL_test_font.h +168 -168
  79. data/assets/include/SDL2/SDL_test_fuzzer.h +386 -386
  80. data/assets/include/SDL2/SDL_test_harness.h +134 -134
  81. data/assets/include/SDL2/SDL_test_images.h +78 -78
  82. data/assets/include/SDL2/SDL_test_log.h +67 -67
  83. data/assets/include/SDL2/SDL_test_md5.h +129 -129
  84. data/assets/include/SDL2/SDL_test_memory.h +63 -63
  85. data/assets/include/SDL2/SDL_test_random.h +115 -115
  86. data/assets/include/SDL2/SDL_thread.h +464 -464
  87. data/assets/include/SDL2/SDL_timer.h +222 -222
  88. data/assets/include/SDL2/SDL_touch.h +150 -150
  89. data/assets/include/SDL2/SDL_ttf.h +2316 -2316
  90. data/assets/include/SDL2/SDL_types.h +29 -29
  91. data/assets/include/SDL2/SDL_version.h +204 -204
  92. data/assets/include/SDL2/SDL_video.h +2150 -2150
  93. data/assets/include/SDL2/SDL_vulkan.h +215 -215
  94. data/assets/include/SDL2/begin_code.h +187 -187
  95. data/assets/include/SDL2/close_code.h +40 -40
  96. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
  97. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
  98. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
  99. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
  100. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
  101. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
  102. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
  103. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
  104. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
  105. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
  106. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
  107. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
  108. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
  109. data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
  110. data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
  111. data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
  112. data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
  113. data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
  114. data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
  115. data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
  116. data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
  117. data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
  118. data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
  119. data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
  120. data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
  121. data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
  122. data/ext/{audio.c → audio/audio.c} +80 -80
  123. data/ext/{extconf.h → audio/extconf.h} +3 -3
  124. data/ext/audio/extconf.rb +115 -0
  125. data/lib/native_audio.rb +50 -50
  126. metadata +7 -27
  127. data/assets/include/GL/glew.h +0 -26427
  128. data/assets/include/GLES2/gl2.h +0 -656
  129. data/assets/include/GLES2/gl2ext.h +0 -3949
  130. data/assets/include/GLES2/gl2ext_angle.h +0 -701
  131. data/assets/include/GLES2/gl2platform.h +0 -27
  132. data/assets/include/GLES3/gl3.h +0 -1192
  133. data/assets/include/GLES3/gl31.h +0 -1507
  134. data/assets/include/GLES3/gl32.h +0 -1808
  135. data/assets/include/GLES3/gl3platform.h +0 -27
  136. data/assets/include/KHR/khrplatform.h +0 -290
  137. data/assets/macos/universal/lib/libSDL2_image.a +0 -0
  138. data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
  139. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
  140. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +0 -1
  141. data/assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a +0 -0
  142. data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
  143. data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -1
  144. data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
  145. data/ext/extconf.rb +0 -173
  146. data/lib/audio.bundle +0 -0
  147. data/lib/audio.so +0 -0
@@ -1,438 +1,438 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
-
5
- This software is provided 'as-is', without any express or implied
6
- warranty. In no event will the authors be held liable for any damages
7
- arising from the use of this software.
8
-
9
- Permission is granted to anyone to use this software for any purpose,
10
- including commercial applications, and to alter it and redistribute it
11
- freely, subject to the following restrictions:
12
-
13
- 1. The origin of this software must not be misrepresented; you must not
14
- claim that you wrote the original software. If you use this software
15
- in a product, an acknowledgment in the product documentation would be
16
- appreciated but is not required.
17
- 2. Altered source versions must be plainly marked as such, and must not be
18
- misrepresented as being the original software.
19
- 3. This notice may not be removed or altered from any source distribution.
20
- */
21
-
22
- /**
23
- * \file SDL_scancode.h
24
- *
25
- * Defines keyboard scancodes.
26
- */
27
-
28
- #ifndef SDL_scancode_h_
29
- #define SDL_scancode_h_
30
-
31
- #include "SDL_stdinc.h"
32
-
33
- /**
34
- * \brief The SDL keyboard scancode representation.
35
- *
36
- * Values of this type are used to represent keyboard keys, among other places
37
- * in the \link SDL_Keysym::scancode key.keysym.scancode \endlink field of the
38
- * SDL_Event structure.
39
- *
40
- * The values in this enumeration are based on the USB usage page standard:
41
- * https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
42
- */
43
- typedef enum
44
- {
45
- SDL_SCANCODE_UNKNOWN = 0,
46
-
47
- /**
48
- * \name Usage page 0x07
49
- *
50
- * These values are from usage page 0x07 (USB keyboard page).
51
- */
52
- /* @{ */
53
-
54
- SDL_SCANCODE_A = 4,
55
- SDL_SCANCODE_B = 5,
56
- SDL_SCANCODE_C = 6,
57
- SDL_SCANCODE_D = 7,
58
- SDL_SCANCODE_E = 8,
59
- SDL_SCANCODE_F = 9,
60
- SDL_SCANCODE_G = 10,
61
- SDL_SCANCODE_H = 11,
62
- SDL_SCANCODE_I = 12,
63
- SDL_SCANCODE_J = 13,
64
- SDL_SCANCODE_K = 14,
65
- SDL_SCANCODE_L = 15,
66
- SDL_SCANCODE_M = 16,
67
- SDL_SCANCODE_N = 17,
68
- SDL_SCANCODE_O = 18,
69
- SDL_SCANCODE_P = 19,
70
- SDL_SCANCODE_Q = 20,
71
- SDL_SCANCODE_R = 21,
72
- SDL_SCANCODE_S = 22,
73
- SDL_SCANCODE_T = 23,
74
- SDL_SCANCODE_U = 24,
75
- SDL_SCANCODE_V = 25,
76
- SDL_SCANCODE_W = 26,
77
- SDL_SCANCODE_X = 27,
78
- SDL_SCANCODE_Y = 28,
79
- SDL_SCANCODE_Z = 29,
80
-
81
- SDL_SCANCODE_1 = 30,
82
- SDL_SCANCODE_2 = 31,
83
- SDL_SCANCODE_3 = 32,
84
- SDL_SCANCODE_4 = 33,
85
- SDL_SCANCODE_5 = 34,
86
- SDL_SCANCODE_6 = 35,
87
- SDL_SCANCODE_7 = 36,
88
- SDL_SCANCODE_8 = 37,
89
- SDL_SCANCODE_9 = 38,
90
- SDL_SCANCODE_0 = 39,
91
-
92
- SDL_SCANCODE_RETURN = 40,
93
- SDL_SCANCODE_ESCAPE = 41,
94
- SDL_SCANCODE_BACKSPACE = 42,
95
- SDL_SCANCODE_TAB = 43,
96
- SDL_SCANCODE_SPACE = 44,
97
-
98
- SDL_SCANCODE_MINUS = 45,
99
- SDL_SCANCODE_EQUALS = 46,
100
- SDL_SCANCODE_LEFTBRACKET = 47,
101
- SDL_SCANCODE_RIGHTBRACKET = 48,
102
- SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return
103
- * key on ISO keyboards and at the right end
104
- * of the QWERTY row on ANSI keyboards.
105
- * Produces REVERSE SOLIDUS (backslash) and
106
- * VERTICAL LINE in a US layout, REVERSE
107
- * SOLIDUS and VERTICAL LINE in a UK Mac
108
- * layout, NUMBER SIGN and TILDE in a UK
109
- * Windows layout, DOLLAR SIGN and POUND SIGN
110
- * in a Swiss German layout, NUMBER SIGN and
111
- * APOSTROPHE in a German layout, GRAVE
112
- * ACCENT and POUND SIGN in a French Mac
113
- * layout, and ASTERISK and MICRO SIGN in a
114
- * French Windows layout.
115
- */
116
- SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code
117
- * instead of 49 for the same key, but all
118
- * OSes I've seen treat the two codes
119
- * identically. So, as an implementor, unless
120
- * your keyboard generates both of those
121
- * codes and your OS treats them differently,
122
- * you should generate SDL_SCANCODE_BACKSLASH
123
- * instead of this code. As a user, you
124
- * should not rely on this code because SDL
125
- * will never generate it with most (all?)
126
- * keyboards.
127
- */
128
- SDL_SCANCODE_SEMICOLON = 51,
129
- SDL_SCANCODE_APOSTROPHE = 52,
130
- SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI
131
- * and ISO keyboards). Produces GRAVE ACCENT and
132
- * TILDE in a US Windows layout and in US and UK
133
- * Mac layouts on ANSI keyboards, GRAVE ACCENT
134
- * and NOT SIGN in a UK Windows layout, SECTION
135
- * SIGN and PLUS-MINUS SIGN in US and UK Mac
136
- * layouts on ISO keyboards, SECTION SIGN and
137
- * DEGREE SIGN in a Swiss German layout (Mac:
138
- * only on ISO keyboards), CIRCUMFLEX ACCENT and
139
- * DEGREE SIGN in a German layout (Mac: only on
140
- * ISO keyboards), SUPERSCRIPT TWO and TILDE in a
141
- * French Windows layout, COMMERCIAL AT and
142
- * NUMBER SIGN in a French Mac layout on ISO
143
- * keyboards, and LESS-THAN SIGN and GREATER-THAN
144
- * SIGN in a Swiss German, German, or French Mac
145
- * layout on ANSI keyboards.
146
- */
147
- SDL_SCANCODE_COMMA = 54,
148
- SDL_SCANCODE_PERIOD = 55,
149
- SDL_SCANCODE_SLASH = 56,
150
-
151
- SDL_SCANCODE_CAPSLOCK = 57,
152
-
153
- SDL_SCANCODE_F1 = 58,
154
- SDL_SCANCODE_F2 = 59,
155
- SDL_SCANCODE_F3 = 60,
156
- SDL_SCANCODE_F4 = 61,
157
- SDL_SCANCODE_F5 = 62,
158
- SDL_SCANCODE_F6 = 63,
159
- SDL_SCANCODE_F7 = 64,
160
- SDL_SCANCODE_F8 = 65,
161
- SDL_SCANCODE_F9 = 66,
162
- SDL_SCANCODE_F10 = 67,
163
- SDL_SCANCODE_F11 = 68,
164
- SDL_SCANCODE_F12 = 69,
165
-
166
- SDL_SCANCODE_PRINTSCREEN = 70,
167
- SDL_SCANCODE_SCROLLLOCK = 71,
168
- SDL_SCANCODE_PAUSE = 72,
169
- SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but
170
- does send code 73, not 117) */
171
- SDL_SCANCODE_HOME = 74,
172
- SDL_SCANCODE_PAGEUP = 75,
173
- SDL_SCANCODE_DELETE = 76,
174
- SDL_SCANCODE_END = 77,
175
- SDL_SCANCODE_PAGEDOWN = 78,
176
- SDL_SCANCODE_RIGHT = 79,
177
- SDL_SCANCODE_LEFT = 80,
178
- SDL_SCANCODE_DOWN = 81,
179
- SDL_SCANCODE_UP = 82,
180
-
181
- SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards
182
- */
183
- SDL_SCANCODE_KP_DIVIDE = 84,
184
- SDL_SCANCODE_KP_MULTIPLY = 85,
185
- SDL_SCANCODE_KP_MINUS = 86,
186
- SDL_SCANCODE_KP_PLUS = 87,
187
- SDL_SCANCODE_KP_ENTER = 88,
188
- SDL_SCANCODE_KP_1 = 89,
189
- SDL_SCANCODE_KP_2 = 90,
190
- SDL_SCANCODE_KP_3 = 91,
191
- SDL_SCANCODE_KP_4 = 92,
192
- SDL_SCANCODE_KP_5 = 93,
193
- SDL_SCANCODE_KP_6 = 94,
194
- SDL_SCANCODE_KP_7 = 95,
195
- SDL_SCANCODE_KP_8 = 96,
196
- SDL_SCANCODE_KP_9 = 97,
197
- SDL_SCANCODE_KP_0 = 98,
198
- SDL_SCANCODE_KP_PERIOD = 99,
199
-
200
- SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO
201
- * keyboards have over ANSI ones,
202
- * located between left shift and Y.
203
- * Produces GRAVE ACCENT and TILDE in a
204
- * US or UK Mac layout, REVERSE SOLIDUS
205
- * (backslash) and VERTICAL LINE in a
206
- * US or UK Windows layout, and
207
- * LESS-THAN SIGN and GREATER-THAN SIGN
208
- * in a Swiss German, German, or French
209
- * layout. */
210
- SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */
211
- SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag,
212
- * not a physical key - but some Mac keyboards
213
- * do have a power key. */
214
- SDL_SCANCODE_KP_EQUALS = 103,
215
- SDL_SCANCODE_F13 = 104,
216
- SDL_SCANCODE_F14 = 105,
217
- SDL_SCANCODE_F15 = 106,
218
- SDL_SCANCODE_F16 = 107,
219
- SDL_SCANCODE_F17 = 108,
220
- SDL_SCANCODE_F18 = 109,
221
- SDL_SCANCODE_F19 = 110,
222
- SDL_SCANCODE_F20 = 111,
223
- SDL_SCANCODE_F21 = 112,
224
- SDL_SCANCODE_F22 = 113,
225
- SDL_SCANCODE_F23 = 114,
226
- SDL_SCANCODE_F24 = 115,
227
- SDL_SCANCODE_EXECUTE = 116,
228
- SDL_SCANCODE_HELP = 117, /**< AL Integrated Help Center */
229
- SDL_SCANCODE_MENU = 118, /**< Menu (show menu) */
230
- SDL_SCANCODE_SELECT = 119,
231
- SDL_SCANCODE_STOP = 120, /**< AC Stop */
232
- SDL_SCANCODE_AGAIN = 121, /**< AC Redo/Repeat */
233
- SDL_SCANCODE_UNDO = 122, /**< AC Undo */
234
- SDL_SCANCODE_CUT = 123, /**< AC Cut */
235
- SDL_SCANCODE_COPY = 124, /**< AC Copy */
236
- SDL_SCANCODE_PASTE = 125, /**< AC Paste */
237
- SDL_SCANCODE_FIND = 126, /**< AC Find */
238
- SDL_SCANCODE_MUTE = 127,
239
- SDL_SCANCODE_VOLUMEUP = 128,
240
- SDL_SCANCODE_VOLUMEDOWN = 129,
241
- /* not sure whether there's a reason to enable these */
242
- /* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
243
- /* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
244
- /* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
245
- SDL_SCANCODE_KP_COMMA = 133,
246
- SDL_SCANCODE_KP_EQUALSAS400 = 134,
247
-
248
- SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see
249
- footnotes in USB doc */
250
- SDL_SCANCODE_INTERNATIONAL2 = 136,
251
- SDL_SCANCODE_INTERNATIONAL3 = 137, /**< Yen */
252
- SDL_SCANCODE_INTERNATIONAL4 = 138,
253
- SDL_SCANCODE_INTERNATIONAL5 = 139,
254
- SDL_SCANCODE_INTERNATIONAL6 = 140,
255
- SDL_SCANCODE_INTERNATIONAL7 = 141,
256
- SDL_SCANCODE_INTERNATIONAL8 = 142,
257
- SDL_SCANCODE_INTERNATIONAL9 = 143,
258
- SDL_SCANCODE_LANG1 = 144, /**< Hangul/English toggle */
259
- SDL_SCANCODE_LANG2 = 145, /**< Hanja conversion */
260
- SDL_SCANCODE_LANG3 = 146, /**< Katakana */
261
- SDL_SCANCODE_LANG4 = 147, /**< Hiragana */
262
- SDL_SCANCODE_LANG5 = 148, /**< Zenkaku/Hankaku */
263
- SDL_SCANCODE_LANG6 = 149, /**< reserved */
264
- SDL_SCANCODE_LANG7 = 150, /**< reserved */
265
- SDL_SCANCODE_LANG8 = 151, /**< reserved */
266
- SDL_SCANCODE_LANG9 = 152, /**< reserved */
267
-
268
- SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
269
- SDL_SCANCODE_SYSREQ = 154,
270
- SDL_SCANCODE_CANCEL = 155, /**< AC Cancel */
271
- SDL_SCANCODE_CLEAR = 156,
272
- SDL_SCANCODE_PRIOR = 157,
273
- SDL_SCANCODE_RETURN2 = 158,
274
- SDL_SCANCODE_SEPARATOR = 159,
275
- SDL_SCANCODE_OUT = 160,
276
- SDL_SCANCODE_OPER = 161,
277
- SDL_SCANCODE_CLEARAGAIN = 162,
278
- SDL_SCANCODE_CRSEL = 163,
279
- SDL_SCANCODE_EXSEL = 164,
280
-
281
- SDL_SCANCODE_KP_00 = 176,
282
- SDL_SCANCODE_KP_000 = 177,
283
- SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
284
- SDL_SCANCODE_DECIMALSEPARATOR = 179,
285
- SDL_SCANCODE_CURRENCYUNIT = 180,
286
- SDL_SCANCODE_CURRENCYSUBUNIT = 181,
287
- SDL_SCANCODE_KP_LEFTPAREN = 182,
288
- SDL_SCANCODE_KP_RIGHTPAREN = 183,
289
- SDL_SCANCODE_KP_LEFTBRACE = 184,
290
- SDL_SCANCODE_KP_RIGHTBRACE = 185,
291
- SDL_SCANCODE_KP_TAB = 186,
292
- SDL_SCANCODE_KP_BACKSPACE = 187,
293
- SDL_SCANCODE_KP_A = 188,
294
- SDL_SCANCODE_KP_B = 189,
295
- SDL_SCANCODE_KP_C = 190,
296
- SDL_SCANCODE_KP_D = 191,
297
- SDL_SCANCODE_KP_E = 192,
298
- SDL_SCANCODE_KP_F = 193,
299
- SDL_SCANCODE_KP_XOR = 194,
300
- SDL_SCANCODE_KP_POWER = 195,
301
- SDL_SCANCODE_KP_PERCENT = 196,
302
- SDL_SCANCODE_KP_LESS = 197,
303
- SDL_SCANCODE_KP_GREATER = 198,
304
- SDL_SCANCODE_KP_AMPERSAND = 199,
305
- SDL_SCANCODE_KP_DBLAMPERSAND = 200,
306
- SDL_SCANCODE_KP_VERTICALBAR = 201,
307
- SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
308
- SDL_SCANCODE_KP_COLON = 203,
309
- SDL_SCANCODE_KP_HASH = 204,
310
- SDL_SCANCODE_KP_SPACE = 205,
311
- SDL_SCANCODE_KP_AT = 206,
312
- SDL_SCANCODE_KP_EXCLAM = 207,
313
- SDL_SCANCODE_KP_MEMSTORE = 208,
314
- SDL_SCANCODE_KP_MEMRECALL = 209,
315
- SDL_SCANCODE_KP_MEMCLEAR = 210,
316
- SDL_SCANCODE_KP_MEMADD = 211,
317
- SDL_SCANCODE_KP_MEMSUBTRACT = 212,
318
- SDL_SCANCODE_KP_MEMMULTIPLY = 213,
319
- SDL_SCANCODE_KP_MEMDIVIDE = 214,
320
- SDL_SCANCODE_KP_PLUSMINUS = 215,
321
- SDL_SCANCODE_KP_CLEAR = 216,
322
- SDL_SCANCODE_KP_CLEARENTRY = 217,
323
- SDL_SCANCODE_KP_BINARY = 218,
324
- SDL_SCANCODE_KP_OCTAL = 219,
325
- SDL_SCANCODE_KP_DECIMAL = 220,
326
- SDL_SCANCODE_KP_HEXADECIMAL = 221,
327
-
328
- SDL_SCANCODE_LCTRL = 224,
329
- SDL_SCANCODE_LSHIFT = 225,
330
- SDL_SCANCODE_LALT = 226, /**< alt, option */
331
- SDL_SCANCODE_LGUI = 227, /**< windows, command (apple), meta */
332
- SDL_SCANCODE_RCTRL = 228,
333
- SDL_SCANCODE_RSHIFT = 229,
334
- SDL_SCANCODE_RALT = 230, /**< alt gr, option */
335
- SDL_SCANCODE_RGUI = 231, /**< windows, command (apple), meta */
336
-
337
- SDL_SCANCODE_MODE = 257, /**< I'm not sure if this is really not covered
338
- * by any of the above, but since there's a
339
- * special KMOD_MODE for it I'm adding it here
340
- */
341
-
342
- /* @} *//* Usage page 0x07 */
343
-
344
- /**
345
- * \name Usage page 0x0C
346
- *
347
- * These values are mapped from usage page 0x0C (USB consumer page).
348
- * See https://usb.org/sites/default/files/hut1_2.pdf
349
- *
350
- * There are way more keys in the spec than we can represent in the
351
- * current scancode range, so pick the ones that commonly come up in
352
- * real world usage.
353
- */
354
- /* @{ */
355
-
356
- SDL_SCANCODE_AUDIONEXT = 258,
357
- SDL_SCANCODE_AUDIOPREV = 259,
358
- SDL_SCANCODE_AUDIOSTOP = 260,
359
- SDL_SCANCODE_AUDIOPLAY = 261,
360
- SDL_SCANCODE_AUDIOMUTE = 262,
361
- SDL_SCANCODE_MEDIASELECT = 263,
362
- SDL_SCANCODE_WWW = 264, /**< AL Internet Browser */
363
- SDL_SCANCODE_MAIL = 265,
364
- SDL_SCANCODE_CALCULATOR = 266, /**< AL Calculator */
365
- SDL_SCANCODE_COMPUTER = 267,
366
- SDL_SCANCODE_AC_SEARCH = 268, /**< AC Search */
367
- SDL_SCANCODE_AC_HOME = 269, /**< AC Home */
368
- SDL_SCANCODE_AC_BACK = 270, /**< AC Back */
369
- SDL_SCANCODE_AC_FORWARD = 271, /**< AC Forward */
370
- SDL_SCANCODE_AC_STOP = 272, /**< AC Stop */
371
- SDL_SCANCODE_AC_REFRESH = 273, /**< AC Refresh */
372
- SDL_SCANCODE_AC_BOOKMARKS = 274, /**< AC Bookmarks */
373
-
374
- /* @} *//* Usage page 0x0C */
375
-
376
- /**
377
- * \name Walther keys
378
- *
379
- * These are values that Christian Walther added (for mac keyboard?).
380
- */
381
- /* @{ */
382
-
383
- SDL_SCANCODE_BRIGHTNESSDOWN = 275,
384
- SDL_SCANCODE_BRIGHTNESSUP = 276,
385
- SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display
386
- switch, video mode switch */
387
- SDL_SCANCODE_KBDILLUMTOGGLE = 278,
388
- SDL_SCANCODE_KBDILLUMDOWN = 279,
389
- SDL_SCANCODE_KBDILLUMUP = 280,
390
- SDL_SCANCODE_EJECT = 281,
391
- SDL_SCANCODE_SLEEP = 282, /**< SC System Sleep */
392
-
393
- SDL_SCANCODE_APP1 = 283,
394
- SDL_SCANCODE_APP2 = 284,
395
-
396
- /* @} *//* Walther keys */
397
-
398
- /**
399
- * \name Usage page 0x0C (additional media keys)
400
- *
401
- * These values are mapped from usage page 0x0C (USB consumer page).
402
- */
403
- /* @{ */
404
-
405
- SDL_SCANCODE_AUDIOREWIND = 285,
406
- SDL_SCANCODE_AUDIOFASTFORWARD = 286,
407
-
408
- /* @} *//* Usage page 0x0C (additional media keys) */
409
-
410
- /**
411
- * \name Mobile keys
412
- *
413
- * These are values that are often used on mobile phones.
414
- */
415
- /* @{ */
416
-
417
- SDL_SCANCODE_SOFTLEFT = 287, /**< Usually situated below the display on phones and
418
- used as a multi-function feature key for selecting
419
- a software defined function shown on the bottom left
420
- of the display. */
421
- SDL_SCANCODE_SOFTRIGHT = 288, /**< Usually situated below the display on phones and
422
- used as a multi-function feature key for selecting
423
- a software defined function shown on the bottom right
424
- of the display. */
425
- SDL_SCANCODE_CALL = 289, /**< Used for accepting phone calls. */
426
- SDL_SCANCODE_ENDCALL = 290, /**< Used for rejecting phone calls. */
427
-
428
- /* @} *//* Mobile keys */
429
-
430
- /* Add any other keys here. */
431
-
432
- SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
433
- for array bounds */
434
- } SDL_Scancode;
435
-
436
- #endif /* SDL_scancode_h_ */
437
-
438
- /* vi: set ts=4 sw=4 expandtab: */
1
+ /*
2
+ Simple DirectMedia Layer
3
+ Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+ */
21
+
22
+ /**
23
+ * \file SDL_scancode.h
24
+ *
25
+ * Defines keyboard scancodes.
26
+ */
27
+
28
+ #ifndef SDL_scancode_h_
29
+ #define SDL_scancode_h_
30
+
31
+ #include "SDL_stdinc.h"
32
+
33
+ /**
34
+ * \brief The SDL keyboard scancode representation.
35
+ *
36
+ * Values of this type are used to represent keyboard keys, among other places
37
+ * in the \link SDL_Keysym::scancode key.keysym.scancode \endlink field of the
38
+ * SDL_Event structure.
39
+ *
40
+ * The values in this enumeration are based on the USB usage page standard:
41
+ * https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
42
+ */
43
+ typedef enum
44
+ {
45
+ SDL_SCANCODE_UNKNOWN = 0,
46
+
47
+ /**
48
+ * \name Usage page 0x07
49
+ *
50
+ * These values are from usage page 0x07 (USB keyboard page).
51
+ */
52
+ /* @{ */
53
+
54
+ SDL_SCANCODE_A = 4,
55
+ SDL_SCANCODE_B = 5,
56
+ SDL_SCANCODE_C = 6,
57
+ SDL_SCANCODE_D = 7,
58
+ SDL_SCANCODE_E = 8,
59
+ SDL_SCANCODE_F = 9,
60
+ SDL_SCANCODE_G = 10,
61
+ SDL_SCANCODE_H = 11,
62
+ SDL_SCANCODE_I = 12,
63
+ SDL_SCANCODE_J = 13,
64
+ SDL_SCANCODE_K = 14,
65
+ SDL_SCANCODE_L = 15,
66
+ SDL_SCANCODE_M = 16,
67
+ SDL_SCANCODE_N = 17,
68
+ SDL_SCANCODE_O = 18,
69
+ SDL_SCANCODE_P = 19,
70
+ SDL_SCANCODE_Q = 20,
71
+ SDL_SCANCODE_R = 21,
72
+ SDL_SCANCODE_S = 22,
73
+ SDL_SCANCODE_T = 23,
74
+ SDL_SCANCODE_U = 24,
75
+ SDL_SCANCODE_V = 25,
76
+ SDL_SCANCODE_W = 26,
77
+ SDL_SCANCODE_X = 27,
78
+ SDL_SCANCODE_Y = 28,
79
+ SDL_SCANCODE_Z = 29,
80
+
81
+ SDL_SCANCODE_1 = 30,
82
+ SDL_SCANCODE_2 = 31,
83
+ SDL_SCANCODE_3 = 32,
84
+ SDL_SCANCODE_4 = 33,
85
+ SDL_SCANCODE_5 = 34,
86
+ SDL_SCANCODE_6 = 35,
87
+ SDL_SCANCODE_7 = 36,
88
+ SDL_SCANCODE_8 = 37,
89
+ SDL_SCANCODE_9 = 38,
90
+ SDL_SCANCODE_0 = 39,
91
+
92
+ SDL_SCANCODE_RETURN = 40,
93
+ SDL_SCANCODE_ESCAPE = 41,
94
+ SDL_SCANCODE_BACKSPACE = 42,
95
+ SDL_SCANCODE_TAB = 43,
96
+ SDL_SCANCODE_SPACE = 44,
97
+
98
+ SDL_SCANCODE_MINUS = 45,
99
+ SDL_SCANCODE_EQUALS = 46,
100
+ SDL_SCANCODE_LEFTBRACKET = 47,
101
+ SDL_SCANCODE_RIGHTBRACKET = 48,
102
+ SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return
103
+ * key on ISO keyboards and at the right end
104
+ * of the QWERTY row on ANSI keyboards.
105
+ * Produces REVERSE SOLIDUS (backslash) and
106
+ * VERTICAL LINE in a US layout, REVERSE
107
+ * SOLIDUS and VERTICAL LINE in a UK Mac
108
+ * layout, NUMBER SIGN and TILDE in a UK
109
+ * Windows layout, DOLLAR SIGN and POUND SIGN
110
+ * in a Swiss German layout, NUMBER SIGN and
111
+ * APOSTROPHE in a German layout, GRAVE
112
+ * ACCENT and POUND SIGN in a French Mac
113
+ * layout, and ASTERISK and MICRO SIGN in a
114
+ * French Windows layout.
115
+ */
116
+ SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code
117
+ * instead of 49 for the same key, but all
118
+ * OSes I've seen treat the two codes
119
+ * identically. So, as an implementor, unless
120
+ * your keyboard generates both of those
121
+ * codes and your OS treats them differently,
122
+ * you should generate SDL_SCANCODE_BACKSLASH
123
+ * instead of this code. As a user, you
124
+ * should not rely on this code because SDL
125
+ * will never generate it with most (all?)
126
+ * keyboards.
127
+ */
128
+ SDL_SCANCODE_SEMICOLON = 51,
129
+ SDL_SCANCODE_APOSTROPHE = 52,
130
+ SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI
131
+ * and ISO keyboards). Produces GRAVE ACCENT and
132
+ * TILDE in a US Windows layout and in US and UK
133
+ * Mac layouts on ANSI keyboards, GRAVE ACCENT
134
+ * and NOT SIGN in a UK Windows layout, SECTION
135
+ * SIGN and PLUS-MINUS SIGN in US and UK Mac
136
+ * layouts on ISO keyboards, SECTION SIGN and
137
+ * DEGREE SIGN in a Swiss German layout (Mac:
138
+ * only on ISO keyboards), CIRCUMFLEX ACCENT and
139
+ * DEGREE SIGN in a German layout (Mac: only on
140
+ * ISO keyboards), SUPERSCRIPT TWO and TILDE in a
141
+ * French Windows layout, COMMERCIAL AT and
142
+ * NUMBER SIGN in a French Mac layout on ISO
143
+ * keyboards, and LESS-THAN SIGN and GREATER-THAN
144
+ * SIGN in a Swiss German, German, or French Mac
145
+ * layout on ANSI keyboards.
146
+ */
147
+ SDL_SCANCODE_COMMA = 54,
148
+ SDL_SCANCODE_PERIOD = 55,
149
+ SDL_SCANCODE_SLASH = 56,
150
+
151
+ SDL_SCANCODE_CAPSLOCK = 57,
152
+
153
+ SDL_SCANCODE_F1 = 58,
154
+ SDL_SCANCODE_F2 = 59,
155
+ SDL_SCANCODE_F3 = 60,
156
+ SDL_SCANCODE_F4 = 61,
157
+ SDL_SCANCODE_F5 = 62,
158
+ SDL_SCANCODE_F6 = 63,
159
+ SDL_SCANCODE_F7 = 64,
160
+ SDL_SCANCODE_F8 = 65,
161
+ SDL_SCANCODE_F9 = 66,
162
+ SDL_SCANCODE_F10 = 67,
163
+ SDL_SCANCODE_F11 = 68,
164
+ SDL_SCANCODE_F12 = 69,
165
+
166
+ SDL_SCANCODE_PRINTSCREEN = 70,
167
+ SDL_SCANCODE_SCROLLLOCK = 71,
168
+ SDL_SCANCODE_PAUSE = 72,
169
+ SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but
170
+ does send code 73, not 117) */
171
+ SDL_SCANCODE_HOME = 74,
172
+ SDL_SCANCODE_PAGEUP = 75,
173
+ SDL_SCANCODE_DELETE = 76,
174
+ SDL_SCANCODE_END = 77,
175
+ SDL_SCANCODE_PAGEDOWN = 78,
176
+ SDL_SCANCODE_RIGHT = 79,
177
+ SDL_SCANCODE_LEFT = 80,
178
+ SDL_SCANCODE_DOWN = 81,
179
+ SDL_SCANCODE_UP = 82,
180
+
181
+ SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards
182
+ */
183
+ SDL_SCANCODE_KP_DIVIDE = 84,
184
+ SDL_SCANCODE_KP_MULTIPLY = 85,
185
+ SDL_SCANCODE_KP_MINUS = 86,
186
+ SDL_SCANCODE_KP_PLUS = 87,
187
+ SDL_SCANCODE_KP_ENTER = 88,
188
+ SDL_SCANCODE_KP_1 = 89,
189
+ SDL_SCANCODE_KP_2 = 90,
190
+ SDL_SCANCODE_KP_3 = 91,
191
+ SDL_SCANCODE_KP_4 = 92,
192
+ SDL_SCANCODE_KP_5 = 93,
193
+ SDL_SCANCODE_KP_6 = 94,
194
+ SDL_SCANCODE_KP_7 = 95,
195
+ SDL_SCANCODE_KP_8 = 96,
196
+ SDL_SCANCODE_KP_9 = 97,
197
+ SDL_SCANCODE_KP_0 = 98,
198
+ SDL_SCANCODE_KP_PERIOD = 99,
199
+
200
+ SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO
201
+ * keyboards have over ANSI ones,
202
+ * located between left shift and Y.
203
+ * Produces GRAVE ACCENT and TILDE in a
204
+ * US or UK Mac layout, REVERSE SOLIDUS
205
+ * (backslash) and VERTICAL LINE in a
206
+ * US or UK Windows layout, and
207
+ * LESS-THAN SIGN and GREATER-THAN SIGN
208
+ * in a Swiss German, German, or French
209
+ * layout. */
210
+ SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */
211
+ SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag,
212
+ * not a physical key - but some Mac keyboards
213
+ * do have a power key. */
214
+ SDL_SCANCODE_KP_EQUALS = 103,
215
+ SDL_SCANCODE_F13 = 104,
216
+ SDL_SCANCODE_F14 = 105,
217
+ SDL_SCANCODE_F15 = 106,
218
+ SDL_SCANCODE_F16 = 107,
219
+ SDL_SCANCODE_F17 = 108,
220
+ SDL_SCANCODE_F18 = 109,
221
+ SDL_SCANCODE_F19 = 110,
222
+ SDL_SCANCODE_F20 = 111,
223
+ SDL_SCANCODE_F21 = 112,
224
+ SDL_SCANCODE_F22 = 113,
225
+ SDL_SCANCODE_F23 = 114,
226
+ SDL_SCANCODE_F24 = 115,
227
+ SDL_SCANCODE_EXECUTE = 116,
228
+ SDL_SCANCODE_HELP = 117, /**< AL Integrated Help Center */
229
+ SDL_SCANCODE_MENU = 118, /**< Menu (show menu) */
230
+ SDL_SCANCODE_SELECT = 119,
231
+ SDL_SCANCODE_STOP = 120, /**< AC Stop */
232
+ SDL_SCANCODE_AGAIN = 121, /**< AC Redo/Repeat */
233
+ SDL_SCANCODE_UNDO = 122, /**< AC Undo */
234
+ SDL_SCANCODE_CUT = 123, /**< AC Cut */
235
+ SDL_SCANCODE_COPY = 124, /**< AC Copy */
236
+ SDL_SCANCODE_PASTE = 125, /**< AC Paste */
237
+ SDL_SCANCODE_FIND = 126, /**< AC Find */
238
+ SDL_SCANCODE_MUTE = 127,
239
+ SDL_SCANCODE_VOLUMEUP = 128,
240
+ SDL_SCANCODE_VOLUMEDOWN = 129,
241
+ /* not sure whether there's a reason to enable these */
242
+ /* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */
243
+ /* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */
244
+ /* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */
245
+ SDL_SCANCODE_KP_COMMA = 133,
246
+ SDL_SCANCODE_KP_EQUALSAS400 = 134,
247
+
248
+ SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see
249
+ footnotes in USB doc */
250
+ SDL_SCANCODE_INTERNATIONAL2 = 136,
251
+ SDL_SCANCODE_INTERNATIONAL3 = 137, /**< Yen */
252
+ SDL_SCANCODE_INTERNATIONAL4 = 138,
253
+ SDL_SCANCODE_INTERNATIONAL5 = 139,
254
+ SDL_SCANCODE_INTERNATIONAL6 = 140,
255
+ SDL_SCANCODE_INTERNATIONAL7 = 141,
256
+ SDL_SCANCODE_INTERNATIONAL8 = 142,
257
+ SDL_SCANCODE_INTERNATIONAL9 = 143,
258
+ SDL_SCANCODE_LANG1 = 144, /**< Hangul/English toggle */
259
+ SDL_SCANCODE_LANG2 = 145, /**< Hanja conversion */
260
+ SDL_SCANCODE_LANG3 = 146, /**< Katakana */
261
+ SDL_SCANCODE_LANG4 = 147, /**< Hiragana */
262
+ SDL_SCANCODE_LANG5 = 148, /**< Zenkaku/Hankaku */
263
+ SDL_SCANCODE_LANG6 = 149, /**< reserved */
264
+ SDL_SCANCODE_LANG7 = 150, /**< reserved */
265
+ SDL_SCANCODE_LANG8 = 151, /**< reserved */
266
+ SDL_SCANCODE_LANG9 = 152, /**< reserved */
267
+
268
+ SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
269
+ SDL_SCANCODE_SYSREQ = 154,
270
+ SDL_SCANCODE_CANCEL = 155, /**< AC Cancel */
271
+ SDL_SCANCODE_CLEAR = 156,
272
+ SDL_SCANCODE_PRIOR = 157,
273
+ SDL_SCANCODE_RETURN2 = 158,
274
+ SDL_SCANCODE_SEPARATOR = 159,
275
+ SDL_SCANCODE_OUT = 160,
276
+ SDL_SCANCODE_OPER = 161,
277
+ SDL_SCANCODE_CLEARAGAIN = 162,
278
+ SDL_SCANCODE_CRSEL = 163,
279
+ SDL_SCANCODE_EXSEL = 164,
280
+
281
+ SDL_SCANCODE_KP_00 = 176,
282
+ SDL_SCANCODE_KP_000 = 177,
283
+ SDL_SCANCODE_THOUSANDSSEPARATOR = 178,
284
+ SDL_SCANCODE_DECIMALSEPARATOR = 179,
285
+ SDL_SCANCODE_CURRENCYUNIT = 180,
286
+ SDL_SCANCODE_CURRENCYSUBUNIT = 181,
287
+ SDL_SCANCODE_KP_LEFTPAREN = 182,
288
+ SDL_SCANCODE_KP_RIGHTPAREN = 183,
289
+ SDL_SCANCODE_KP_LEFTBRACE = 184,
290
+ SDL_SCANCODE_KP_RIGHTBRACE = 185,
291
+ SDL_SCANCODE_KP_TAB = 186,
292
+ SDL_SCANCODE_KP_BACKSPACE = 187,
293
+ SDL_SCANCODE_KP_A = 188,
294
+ SDL_SCANCODE_KP_B = 189,
295
+ SDL_SCANCODE_KP_C = 190,
296
+ SDL_SCANCODE_KP_D = 191,
297
+ SDL_SCANCODE_KP_E = 192,
298
+ SDL_SCANCODE_KP_F = 193,
299
+ SDL_SCANCODE_KP_XOR = 194,
300
+ SDL_SCANCODE_KP_POWER = 195,
301
+ SDL_SCANCODE_KP_PERCENT = 196,
302
+ SDL_SCANCODE_KP_LESS = 197,
303
+ SDL_SCANCODE_KP_GREATER = 198,
304
+ SDL_SCANCODE_KP_AMPERSAND = 199,
305
+ SDL_SCANCODE_KP_DBLAMPERSAND = 200,
306
+ SDL_SCANCODE_KP_VERTICALBAR = 201,
307
+ SDL_SCANCODE_KP_DBLVERTICALBAR = 202,
308
+ SDL_SCANCODE_KP_COLON = 203,
309
+ SDL_SCANCODE_KP_HASH = 204,
310
+ SDL_SCANCODE_KP_SPACE = 205,
311
+ SDL_SCANCODE_KP_AT = 206,
312
+ SDL_SCANCODE_KP_EXCLAM = 207,
313
+ SDL_SCANCODE_KP_MEMSTORE = 208,
314
+ SDL_SCANCODE_KP_MEMRECALL = 209,
315
+ SDL_SCANCODE_KP_MEMCLEAR = 210,
316
+ SDL_SCANCODE_KP_MEMADD = 211,
317
+ SDL_SCANCODE_KP_MEMSUBTRACT = 212,
318
+ SDL_SCANCODE_KP_MEMMULTIPLY = 213,
319
+ SDL_SCANCODE_KP_MEMDIVIDE = 214,
320
+ SDL_SCANCODE_KP_PLUSMINUS = 215,
321
+ SDL_SCANCODE_KP_CLEAR = 216,
322
+ SDL_SCANCODE_KP_CLEARENTRY = 217,
323
+ SDL_SCANCODE_KP_BINARY = 218,
324
+ SDL_SCANCODE_KP_OCTAL = 219,
325
+ SDL_SCANCODE_KP_DECIMAL = 220,
326
+ SDL_SCANCODE_KP_HEXADECIMAL = 221,
327
+
328
+ SDL_SCANCODE_LCTRL = 224,
329
+ SDL_SCANCODE_LSHIFT = 225,
330
+ SDL_SCANCODE_LALT = 226, /**< alt, option */
331
+ SDL_SCANCODE_LGUI = 227, /**< windows, command (apple), meta */
332
+ SDL_SCANCODE_RCTRL = 228,
333
+ SDL_SCANCODE_RSHIFT = 229,
334
+ SDL_SCANCODE_RALT = 230, /**< alt gr, option */
335
+ SDL_SCANCODE_RGUI = 231, /**< windows, command (apple), meta */
336
+
337
+ SDL_SCANCODE_MODE = 257, /**< I'm not sure if this is really not covered
338
+ * by any of the above, but since there's a
339
+ * special KMOD_MODE for it I'm adding it here
340
+ */
341
+
342
+ /* @} *//* Usage page 0x07 */
343
+
344
+ /**
345
+ * \name Usage page 0x0C
346
+ *
347
+ * These values are mapped from usage page 0x0C (USB consumer page).
348
+ * See https://usb.org/sites/default/files/hut1_2.pdf
349
+ *
350
+ * There are way more keys in the spec than we can represent in the
351
+ * current scancode range, so pick the ones that commonly come up in
352
+ * real world usage.
353
+ */
354
+ /* @{ */
355
+
356
+ SDL_SCANCODE_AUDIONEXT = 258,
357
+ SDL_SCANCODE_AUDIOPREV = 259,
358
+ SDL_SCANCODE_AUDIOSTOP = 260,
359
+ SDL_SCANCODE_AUDIOPLAY = 261,
360
+ SDL_SCANCODE_AUDIOMUTE = 262,
361
+ SDL_SCANCODE_MEDIASELECT = 263,
362
+ SDL_SCANCODE_WWW = 264, /**< AL Internet Browser */
363
+ SDL_SCANCODE_MAIL = 265,
364
+ SDL_SCANCODE_CALCULATOR = 266, /**< AL Calculator */
365
+ SDL_SCANCODE_COMPUTER = 267,
366
+ SDL_SCANCODE_AC_SEARCH = 268, /**< AC Search */
367
+ SDL_SCANCODE_AC_HOME = 269, /**< AC Home */
368
+ SDL_SCANCODE_AC_BACK = 270, /**< AC Back */
369
+ SDL_SCANCODE_AC_FORWARD = 271, /**< AC Forward */
370
+ SDL_SCANCODE_AC_STOP = 272, /**< AC Stop */
371
+ SDL_SCANCODE_AC_REFRESH = 273, /**< AC Refresh */
372
+ SDL_SCANCODE_AC_BOOKMARKS = 274, /**< AC Bookmarks */
373
+
374
+ /* @} *//* Usage page 0x0C */
375
+
376
+ /**
377
+ * \name Walther keys
378
+ *
379
+ * These are values that Christian Walther added (for mac keyboard?).
380
+ */
381
+ /* @{ */
382
+
383
+ SDL_SCANCODE_BRIGHTNESSDOWN = 275,
384
+ SDL_SCANCODE_BRIGHTNESSUP = 276,
385
+ SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display
386
+ switch, video mode switch */
387
+ SDL_SCANCODE_KBDILLUMTOGGLE = 278,
388
+ SDL_SCANCODE_KBDILLUMDOWN = 279,
389
+ SDL_SCANCODE_KBDILLUMUP = 280,
390
+ SDL_SCANCODE_EJECT = 281,
391
+ SDL_SCANCODE_SLEEP = 282, /**< SC System Sleep */
392
+
393
+ SDL_SCANCODE_APP1 = 283,
394
+ SDL_SCANCODE_APP2 = 284,
395
+
396
+ /* @} *//* Walther keys */
397
+
398
+ /**
399
+ * \name Usage page 0x0C (additional media keys)
400
+ *
401
+ * These values are mapped from usage page 0x0C (USB consumer page).
402
+ */
403
+ /* @{ */
404
+
405
+ SDL_SCANCODE_AUDIOREWIND = 285,
406
+ SDL_SCANCODE_AUDIOFASTFORWARD = 286,
407
+
408
+ /* @} *//* Usage page 0x0C (additional media keys) */
409
+
410
+ /**
411
+ * \name Mobile keys
412
+ *
413
+ * These are values that are often used on mobile phones.
414
+ */
415
+ /* @{ */
416
+
417
+ SDL_SCANCODE_SOFTLEFT = 287, /**< Usually situated below the display on phones and
418
+ used as a multi-function feature key for selecting
419
+ a software defined function shown on the bottom left
420
+ of the display. */
421
+ SDL_SCANCODE_SOFTRIGHT = 288, /**< Usually situated below the display on phones and
422
+ used as a multi-function feature key for selecting
423
+ a software defined function shown on the bottom right
424
+ of the display. */
425
+ SDL_SCANCODE_CALL = 289, /**< Used for accepting phone calls. */
426
+ SDL_SCANCODE_ENDCALL = 290, /**< Used for rejecting phone calls. */
427
+
428
+ /* @} *//* Mobile keys */
429
+
430
+ /* Add any other keys here. */
431
+
432
+ SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
433
+ for array bounds */
434
+ } SDL_Scancode;
435
+
436
+ #endif /* SDL_scancode_h_ */
437
+
438
+ /* vi: set ts=4 sw=4 expandtab: */