gosu 1.5.0 → 2.0.0.pre6
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.
- checksums.yaml +4 -4
- data/dependencies/SDL/include/SDL.h +233 -0
- data/dependencies/SDL/include/SDL_assert.h +320 -0
- data/dependencies/SDL/include/SDL_atomic.h +414 -0
- data/dependencies/SDL/include/SDL_audio.h +1500 -0
- data/dependencies/SDL/include/{SDL3/SDL_bits.h → SDL_bits.h} +27 -47
- data/dependencies/SDL/include/{SDL3/SDL_blendmode.h → SDL_blendmode.h} +55 -59
- data/dependencies/SDL/include/SDL_clipboard.h +141 -0
- data/dependencies/SDL/include/SDL_config.h +331 -0
- data/dependencies/SDL/include/SDL_cpuinfo.h +594 -0
- data/dependencies/SDL/include/{SDL3/SDL_egl.h → SDL_egl.h} +8 -11
- data/dependencies/SDL/include/SDL_endian.h +348 -0
- data/dependencies/SDL/include/SDL_error.h +163 -0
- data/dependencies/SDL/include/SDL_events.h +1166 -0
- data/dependencies/SDL/include/SDL_filesystem.h +149 -0
- data/dependencies/SDL/include/SDL_gamecontroller.h +1074 -0
- data/dependencies/SDL/include/SDL_gesture.h +117 -0
- data/dependencies/SDL/include/SDL_guid.h +100 -0
- data/dependencies/SDL/include/SDL_haptic.h +1341 -0
- data/dependencies/SDL/include/SDL_hidapi.h +451 -0
- data/dependencies/SDL/include/SDL_hints.h +2613 -0
- data/dependencies/SDL/include/SDL_joystick.h +1069 -0
- data/dependencies/SDL/include/SDL_keyboard.h +353 -0
- data/dependencies/SDL/include/SDL_keycode.h +358 -0
- data/dependencies/SDL/include/SDL_loadso.h +115 -0
- data/dependencies/SDL/include/{SDL3/SDL_locale.h → SDL_locale.h} +24 -40
- data/dependencies/SDL/include/SDL_log.h +404 -0
- data/dependencies/SDL/include/SDL_main.h +282 -0
- data/dependencies/SDL/include/{SDL3/SDL_messagebox.h → SDL_messagebox.h} +48 -85
- data/dependencies/SDL/include/{SDL3/SDL_metal.h → SDL_metal.h} +29 -29
- data/dependencies/SDL/include/{SDL3/SDL_misc.h → SDL_misc.h} +12 -13
- data/dependencies/SDL/include/SDL_mouse.h +464 -0
- data/dependencies/SDL/include/SDL_mutex.h +545 -0
- data/dependencies/SDL/include/SDL_name.h +33 -0
- data/dependencies/SDL/include/{SDL3/SDL_opengl.h → SDL_opengl.h} +252 -1221
- data/dependencies/SDL/include/{SDL3/SDL_opengles.h → SDL_opengles.h} +7 -6
- data/dependencies/SDL/include/{SDL3/SDL_opengles2.h → SDL_opengles2.h} +11 -10
- data/dependencies/SDL/include/SDL_pixels.h +644 -0
- data/dependencies/SDL/include/SDL_platform.h +261 -0
- data/dependencies/SDL/include/{SDL3/SDL_power.h → SDL_power.h} +19 -40
- data/dependencies/SDL/include/SDL_quit.h +58 -0
- data/dependencies/SDL/include/SDL_rect.h +376 -0
- data/dependencies/SDL/include/SDL_render.h +1924 -0
- data/dependencies/SDL/include/SDL_revision.h +7 -0
- data/dependencies/SDL/include/SDL_rwops.h +841 -0
- data/dependencies/SDL/include/{SDL3/SDL_scancode.h → SDL_scancode.h} +68 -60
- data/dependencies/SDL/include/SDL_sensor.h +322 -0
- data/dependencies/SDL/include/SDL_shape.h +155 -0
- data/dependencies/SDL/include/SDL_stdinc.h +838 -0
- data/dependencies/SDL/include/SDL_surface.h +997 -0
- data/dependencies/SDL/include/SDL_system.h +623 -0
- data/dependencies/SDL/include/SDL_syswm.h +386 -0
- data/dependencies/SDL/include/{SDL3/SDL_test.h → SDL_test.h} +22 -16
- data/dependencies/SDL/include/{SDL3/SDL_test_assert.h → SDL_test_assert.h} +34 -27
- data/dependencies/SDL/include/{SDL3/SDL_test_common.h → SDL_test_common.h} +52 -109
- data/dependencies/SDL/include/{SDL3/SDL_test_compare.h → SDL_test_compare.h} +14 -22
- data/dependencies/SDL/include/{SDL3/SDL_test_crc32.h → SDL_test_crc32.h} +30 -27
- data/dependencies/SDL/include/{SDL3/SDL_test_font.h → SDL_test_font.h} +49 -50
- data/dependencies/SDL/include/{SDL3/SDL_test_fuzzer.h → SDL_test_fuzzer.h} +79 -64
- data/dependencies/SDL/include/{SDL3/SDL_test_harness.h → SDL_test_harness.h} +30 -47
- data/dependencies/SDL/include/SDL_test_images.h +78 -0
- data/dependencies/SDL/include/{SDL3/SDL_platform.h → SDL_test_log.h} +26 -25
- data/dependencies/SDL/include/{SDL3/SDL_test_md5.h → SDL_test_md5.h} +28 -21
- data/dependencies/SDL/include/{SDL3/SDL_test_memory.h → SDL_test_memory.h} +16 -19
- data/dependencies/SDL/include/SDL_test_random.h +115 -0
- data/dependencies/SDL/include/SDL_thread.h +464 -0
- data/dependencies/SDL/include/SDL_timer.h +222 -0
- data/dependencies/SDL/include/SDL_touch.h +150 -0
- data/dependencies/SDL/include/{SDL3/SDL_copying.h → SDL_types.h} +9 -2
- data/dependencies/SDL/include/SDL_version.h +204 -0
- data/dependencies/SDL/include/SDL_video.h +2178 -0
- data/dependencies/SDL/include/SDL_vulkan.h +215 -0
- data/dependencies/SDL/include/begin_code.h +187 -0
- data/dependencies/SDL/include/{SDL3/SDL_close_code.h → close_code.h} +6 -7
- data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
- data/dependencies/SDL_sound/SDL_sound.c +215 -136
- data/dependencies/SDL_sound/SDL_sound.h +725 -0
- data/dependencies/SDL_sound/SDL_sound_aiff.c +54 -55
- data/dependencies/SDL_sound/SDL_sound_au.c +32 -32
- data/dependencies/SDL_sound/SDL_sound_coreaudio.c +41 -24
- data/dependencies/SDL_sound/SDL_sound_flac.c +12 -32
- data/dependencies/SDL_sound/SDL_sound_internal.h +48 -33
- data/dependencies/SDL_sound/SDL_sound_modplug.c +29 -21
- data/dependencies/SDL_sound/SDL_sound_mp3.c +13 -35
- data/dependencies/SDL_sound/SDL_sound_raw.c +15 -14
- data/dependencies/SDL_sound/SDL_sound_shn.c +82 -82
- data/dependencies/SDL_sound/SDL_sound_voc.c +30 -30
- data/dependencies/SDL_sound/SDL_sound_vorbis.c +25 -34
- data/dependencies/SDL_sound/SDL_sound_wav.c +82 -86
- data/dependencies/SDL_sound/dr_flac.h +1281 -1845
- data/dependencies/SDL_sound/dr_mp3.h +617 -1035
- data/dependencies/SDL_sound/libmodplug/fastmix.c +1 -1
- data/dependencies/SDL_sound/libmodplug/libmodplug.h +4 -5
- data/dependencies/SDL_sound/libmodplug/load_ams.c +3 -6
- data/dependencies/SDL_sound/libmodplug/load_dsm.c +1 -2
- data/dependencies/SDL_sound/libmodplug/load_mt2.c +2 -2
- data/dependencies/SDL_sound/libmodplug/modplug.h +1 -2
- data/dependencies/SDL_sound/libmodplug/snd_fx.c +3 -3
- data/dependencies/SDL_sound/libmodplug/sndfile.c +0 -3
- data/dependencies/SDL_sound/libmodplug/sndmix.c +3 -7
- data/dependencies/SDL_sound/stb_vorbis.h +343 -397
- data/dependencies/mojoAL/AL/alc.h +2 -2
- data/dependencies/mojoAL/mojoal.c +1878 -2113
- data/dependencies/stb/stb_image.h +1381 -1192
- data/dependencies/stb/stb_image_write.h +129 -329
- data/dependencies/stb/stb_truetype.h +60 -304
- data/dependencies/utf8proc/utf8proc.c +75 -133
- data/dependencies/utf8proc/utf8proc.h +50 -131
- data/dependencies/utf8proc/utf8proc_data.h +15658 -16213
- data/ext/gosu-ffi/extconf.rb +28 -11
- data/ext/gosu-ffi/gosu-ffi.def +0 -3
- data/ffi/Gosu.cpp +29 -52
- data/ffi/Gosu.h +4 -4
- data/ffi/Gosu_Color.cpp +36 -80
- data/ffi/Gosu_FFI_internal.h +13 -12
- data/ffi/Gosu_Font.cpp +11 -16
- data/ffi/Gosu_Font.h +4 -4
- data/ffi/Gosu_Image.cpp +36 -69
- data/ffi/Gosu_Image.h +5 -16
- data/include/Gosu/Bitmap.hpp +1 -1
- data/include/Gosu/Color.hpp +4 -5
- data/include/Gosu/Graphics.hpp +0 -2
- data/include/Gosu/Image.hpp +1 -1
- data/include/Gosu/Math.hpp +5 -5
- data/include/Gosu/Utility.hpp +1 -27
- data/include/Gosu/Version.hpp +2 -2
- data/lib/SDL2.dll +0 -0
- data/lib/gosu/channel.rb +0 -1
- data/lib/gosu/color.rb +13 -36
- data/lib/gosu/compat.rb +14 -106
- data/lib/gosu/constants.rb +24 -24
- data/lib/gosu/ffi.rb +13 -24
- data/lib/gosu/font.rb +13 -19
- data/lib/gosu/gosu.rb +61 -101
- data/lib/gosu/image.rb +34 -72
- data/lib/gosu/sample.rb +0 -1
- data/lib/gosu/song.rb +0 -1
- data/lib/gosu/text_input.rb +1 -15
- data/lib/gosu/window.rb +10 -31
- data/lib64/SDL2.dll +0 -0
- data/rdoc/gosu.rb +0 -2
- data/src/Audio.cpp +16 -22
- data/src/AudioFileSDLSound.cpp +5 -5
- data/src/BinPacker.cpp +4 -5
- data/src/Bitmap.cpp +9 -16
- data/src/Buffer.cpp +14 -5
- data/src/ClipRectStack.hpp +83 -17
- data/src/Directories.cpp +1 -1
- data/src/DrawOp.hpp +17 -14
- data/src/DrawOpQueue.hpp +31 -25
- data/src/Font.cpp +1 -1
- data/src/GosuGLView.cpp +7 -1
- data/src/Graphics.cpp +25 -32
- data/src/GraphicsImpl.hpp +24 -0
- data/src/Image.cpp +2 -2
- data/src/Input.cpp +70 -66
- data/src/Macro.cpp +26 -43
- data/src/Macro.hpp +16 -22
- data/src/Math.cpp +7 -20
- data/src/OffScreenTarget.cpp +10 -3
- data/src/OpenGLContext.cpp +8 -7
- data/src/OpenGLContext.hpp +2 -2
- data/src/RenderState.hpp +54 -30
- data/src/Resolution.cpp +38 -48
- data/src/TexChunk.cpp +2 -2
- data/src/TextInput.cpp +9 -9
- data/src/Texture.cpp +1 -1
- data/src/TiledDrawable.cpp +7 -6
- data/src/TrueTypeFontUnix.cpp +9 -12
- data/src/Utility.cpp +26 -39
- data/src/UtilityWin.cpp +2 -6
- data/src/Window.cpp +34 -54
- metadata +93 -99
- data/dependencies/SDL/include/SDL3/SDL.h +0 -91
- data/dependencies/SDL/include/SDL3/SDL_assert.h +0 -710
- data/dependencies/SDL/include/SDL3/SDL_asyncio.h +0 -550
- data/dependencies/SDL/include/SDL3/SDL_atomic.h +0 -692
- data/dependencies/SDL/include/SDL3/SDL_audio.h +0 -2382
- data/dependencies/SDL/include/SDL3/SDL_begin_code.h +0 -553
- data/dependencies/SDL/include/SDL3/SDL_camera.h +0 -535
- data/dependencies/SDL/include/SDL3/SDL_clipboard.h +0 -331
- data/dependencies/SDL/include/SDL3/SDL_cpuinfo.h +0 -374
- data/dependencies/SDL/include/SDL3/SDL_dialog.h +0 -343
- data/dependencies/SDL/include/SDL3/SDL_dlopennote.h +0 -234
- data/dependencies/SDL/include/SDL3/SDL_endian.h +0 -645
- data/dependencies/SDL/include/SDL3/SDL_error.h +0 -226
- data/dependencies/SDL/include/SDL3/SDL_events.h +0 -1651
- data/dependencies/SDL/include/SDL3/SDL_filesystem.h +0 -537
- data/dependencies/SDL/include/SDL3/SDL_gamepad.h +0 -1657
- data/dependencies/SDL/include/SDL3/SDL_gpu.h +0 -4637
- data/dependencies/SDL/include/SDL3/SDL_guid.h +0 -106
- data/dependencies/SDL/include/SDL3/SDL_haptic.h +0 -1461
- data/dependencies/SDL/include/SDL3/SDL_hidapi.h +0 -571
- data/dependencies/SDL/include/SDL3/SDL_hints.h +0 -5041
- data/dependencies/SDL/include/SDL3/SDL_init.h +0 -508
- data/dependencies/SDL/include/SDL3/SDL_intrin.h +0 -410
- data/dependencies/SDL/include/SDL3/SDL_iostream.h +0 -1379
- data/dependencies/SDL/include/SDL3/SDL_joystick.h +0 -1385
- data/dependencies/SDL/include/SDL3/SDL_keyboard.h +0 -615
- data/dependencies/SDL/include/SDL3/SDL_keycode.h +0 -348
- data/dependencies/SDL/include/SDL3/SDL_loadso.h +0 -145
- data/dependencies/SDL/include/SDL3/SDL_log.h +0 -541
- data/dependencies/SDL/include/SDL3/SDL_main.h +0 -704
- data/dependencies/SDL/include/SDL3/SDL_main_impl.h +0 -149
- data/dependencies/SDL/include/SDL3/SDL_mouse.h +0 -813
- data/dependencies/SDL/include/SDL3/SDL_mutex.h +0 -1117
- data/dependencies/SDL/include/SDL3/SDL_oldnames.h +0 -1339
- data/dependencies/SDL/include/SDL3/SDL_pen.h +0 -198
- data/dependencies/SDL/include/SDL3/SDL_pixels.h +0 -1441
- data/dependencies/SDL/include/SDL3/SDL_platform_defines.h +0 -497
- data/dependencies/SDL/include/SDL3/SDL_process.h +0 -441
- data/dependencies/SDL/include/SDL3/SDL_properties.h +0 -572
- data/dependencies/SDL/include/SDL3/SDL_rect.h +0 -528
- data/dependencies/SDL/include/SDL3/SDL_render.h +0 -3034
- data/dependencies/SDL/include/SDL3/SDL_revision.h +0 -56
- data/dependencies/SDL/include/SDL3/SDL_sensor.h +0 -321
- data/dependencies/SDL/include/SDL3/SDL_stdinc.h +0 -6186
- data/dependencies/SDL/include/SDL3/SDL_storage.h +0 -686
- data/dependencies/SDL/include/SDL3/SDL_surface.h +0 -1769
- data/dependencies/SDL/include/SDL3/SDL_system.h +0 -840
- data/dependencies/SDL/include/SDL3/SDL_test_log.h +0 -83
- data/dependencies/SDL/include/SDL3/SDL_thread.h +0 -602
- data/dependencies/SDL/include/SDL3/SDL_time.h +0 -249
- data/dependencies/SDL/include/SDL3/SDL_timer.h +0 -454
- data/dependencies/SDL/include/SDL3/SDL_touch.h +0 -184
- data/dependencies/SDL/include/SDL3/SDL_tray.h +0 -544
- data/dependencies/SDL/include/SDL3/SDL_version.h +0 -198
- data/dependencies/SDL/include/SDL3/SDL_video.h +0 -3497
- data/dependencies/SDL/include/SDL3/SDL_vulkan.h +0 -287
- data/dependencies/SDL/lib/x64/libSDL3.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL3.dll.a +0 -0
- data/dependencies/SDL_sound/SDL3_sound/SDL_sound.h +0 -755
- data/lib/SDL3.dll +0 -0
- data/lib64/SDL3.dll +0 -0
- data/src/ClipRectStack.cpp +0 -38
- /data/dependencies/SDL/include/{SDL3/SDL_opengl_glext.h → SDL_opengl_glext.h} +0 -0
- /data/dependencies/SDL/include/{SDL3/SDL_opengles2_gl2.h → SDL_opengles2_gl2.h} +0 -0
- /data/dependencies/SDL/include/{SDL3/SDL_opengles2_gl2ext.h → SDL_opengles2_gl2ext.h} +0 -0
- /data/dependencies/SDL/include/{SDL3/SDL_opengles2_gl2platform.h → SDL_opengles2_gl2platform.h} +0 -0
- /data/dependencies/SDL/include/{SDL3/SDL_opengles2_khrplatform.h → SDL_opengles2_khrplatform.h} +0 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Simple DirectMedia Layer
|
|
3
|
+
Copyright (C) 1997-2023 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_keycode.h
|
|
24
|
+
*
|
|
25
|
+
* Defines constants which identify keyboard keys and modifiers.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
#ifndef SDL_keycode_h_
|
|
29
|
+
#define SDL_keycode_h_
|
|
30
|
+
|
|
31
|
+
#include "SDL_stdinc.h"
|
|
32
|
+
#include "SDL_scancode.h"
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* \brief The SDL virtual key representation.
|
|
36
|
+
*
|
|
37
|
+
* Values of this type are used to represent keyboard keys using the current
|
|
38
|
+
* layout of the keyboard. These values include Unicode values representing
|
|
39
|
+
* the unmodified character that would be generated by pressing the key, or
|
|
40
|
+
* an SDLK_* constant for those keys that do not generate characters.
|
|
41
|
+
*
|
|
42
|
+
* A special exception is the number keys at the top of the keyboard which
|
|
43
|
+
* map to SDLK_0...SDLK_9 on AZERTY layouts.
|
|
44
|
+
*/
|
|
45
|
+
typedef Sint32 SDL_Keycode;
|
|
46
|
+
|
|
47
|
+
#define SDLK_SCANCODE_MASK (1<<30)
|
|
48
|
+
#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
|
|
49
|
+
|
|
50
|
+
typedef enum
|
|
51
|
+
{
|
|
52
|
+
SDLK_UNKNOWN = 0,
|
|
53
|
+
|
|
54
|
+
SDLK_RETURN = '\r',
|
|
55
|
+
SDLK_ESCAPE = '\x1B',
|
|
56
|
+
SDLK_BACKSPACE = '\b',
|
|
57
|
+
SDLK_TAB = '\t',
|
|
58
|
+
SDLK_SPACE = ' ',
|
|
59
|
+
SDLK_EXCLAIM = '!',
|
|
60
|
+
SDLK_QUOTEDBL = '"',
|
|
61
|
+
SDLK_HASH = '#',
|
|
62
|
+
SDLK_PERCENT = '%',
|
|
63
|
+
SDLK_DOLLAR = '$',
|
|
64
|
+
SDLK_AMPERSAND = '&',
|
|
65
|
+
SDLK_QUOTE = '\'',
|
|
66
|
+
SDLK_LEFTPAREN = '(',
|
|
67
|
+
SDLK_RIGHTPAREN = ')',
|
|
68
|
+
SDLK_ASTERISK = '*',
|
|
69
|
+
SDLK_PLUS = '+',
|
|
70
|
+
SDLK_COMMA = ',',
|
|
71
|
+
SDLK_MINUS = '-',
|
|
72
|
+
SDLK_PERIOD = '.',
|
|
73
|
+
SDLK_SLASH = '/',
|
|
74
|
+
SDLK_0 = '0',
|
|
75
|
+
SDLK_1 = '1',
|
|
76
|
+
SDLK_2 = '2',
|
|
77
|
+
SDLK_3 = '3',
|
|
78
|
+
SDLK_4 = '4',
|
|
79
|
+
SDLK_5 = '5',
|
|
80
|
+
SDLK_6 = '6',
|
|
81
|
+
SDLK_7 = '7',
|
|
82
|
+
SDLK_8 = '8',
|
|
83
|
+
SDLK_9 = '9',
|
|
84
|
+
SDLK_COLON = ':',
|
|
85
|
+
SDLK_SEMICOLON = ';',
|
|
86
|
+
SDLK_LESS = '<',
|
|
87
|
+
SDLK_EQUALS = '=',
|
|
88
|
+
SDLK_GREATER = '>',
|
|
89
|
+
SDLK_QUESTION = '?',
|
|
90
|
+
SDLK_AT = '@',
|
|
91
|
+
|
|
92
|
+
/*
|
|
93
|
+
Skip uppercase letters
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
SDLK_LEFTBRACKET = '[',
|
|
97
|
+
SDLK_BACKSLASH = '\\',
|
|
98
|
+
SDLK_RIGHTBRACKET = ']',
|
|
99
|
+
SDLK_CARET = '^',
|
|
100
|
+
SDLK_UNDERSCORE = '_',
|
|
101
|
+
SDLK_BACKQUOTE = '`',
|
|
102
|
+
SDLK_a = 'a',
|
|
103
|
+
SDLK_b = 'b',
|
|
104
|
+
SDLK_c = 'c',
|
|
105
|
+
SDLK_d = 'd',
|
|
106
|
+
SDLK_e = 'e',
|
|
107
|
+
SDLK_f = 'f',
|
|
108
|
+
SDLK_g = 'g',
|
|
109
|
+
SDLK_h = 'h',
|
|
110
|
+
SDLK_i = 'i',
|
|
111
|
+
SDLK_j = 'j',
|
|
112
|
+
SDLK_k = 'k',
|
|
113
|
+
SDLK_l = 'l',
|
|
114
|
+
SDLK_m = 'm',
|
|
115
|
+
SDLK_n = 'n',
|
|
116
|
+
SDLK_o = 'o',
|
|
117
|
+
SDLK_p = 'p',
|
|
118
|
+
SDLK_q = 'q',
|
|
119
|
+
SDLK_r = 'r',
|
|
120
|
+
SDLK_s = 's',
|
|
121
|
+
SDLK_t = 't',
|
|
122
|
+
SDLK_u = 'u',
|
|
123
|
+
SDLK_v = 'v',
|
|
124
|
+
SDLK_w = 'w',
|
|
125
|
+
SDLK_x = 'x',
|
|
126
|
+
SDLK_y = 'y',
|
|
127
|
+
SDLK_z = 'z',
|
|
128
|
+
|
|
129
|
+
SDLK_CAPSLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK),
|
|
130
|
+
|
|
131
|
+
SDLK_F1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1),
|
|
132
|
+
SDLK_F2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2),
|
|
133
|
+
SDLK_F3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3),
|
|
134
|
+
SDLK_F4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4),
|
|
135
|
+
SDLK_F5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5),
|
|
136
|
+
SDLK_F6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6),
|
|
137
|
+
SDLK_F7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7),
|
|
138
|
+
SDLK_F8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8),
|
|
139
|
+
SDLK_F9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9),
|
|
140
|
+
SDLK_F10 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10),
|
|
141
|
+
SDLK_F11 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11),
|
|
142
|
+
SDLK_F12 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12),
|
|
143
|
+
|
|
144
|
+
SDLK_PRINTSCREEN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN),
|
|
145
|
+
SDLK_SCROLLLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK),
|
|
146
|
+
SDLK_PAUSE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE),
|
|
147
|
+
SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
|
|
148
|
+
SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
|
|
149
|
+
SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
|
|
150
|
+
SDLK_DELETE = '\x7F',
|
|
151
|
+
SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
|
|
152
|
+
SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
|
|
153
|
+
SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),
|
|
154
|
+
SDLK_LEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT),
|
|
155
|
+
SDLK_DOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN),
|
|
156
|
+
SDLK_UP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP),
|
|
157
|
+
|
|
158
|
+
SDLK_NUMLOCKCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR),
|
|
159
|
+
SDLK_KP_DIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE),
|
|
160
|
+
SDLK_KP_MULTIPLY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY),
|
|
161
|
+
SDLK_KP_MINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS),
|
|
162
|
+
SDLK_KP_PLUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS),
|
|
163
|
+
SDLK_KP_ENTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER),
|
|
164
|
+
SDLK_KP_1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1),
|
|
165
|
+
SDLK_KP_2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2),
|
|
166
|
+
SDLK_KP_3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3),
|
|
167
|
+
SDLK_KP_4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4),
|
|
168
|
+
SDLK_KP_5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5),
|
|
169
|
+
SDLK_KP_6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6),
|
|
170
|
+
SDLK_KP_7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7),
|
|
171
|
+
SDLK_KP_8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8),
|
|
172
|
+
SDLK_KP_9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9),
|
|
173
|
+
SDLK_KP_0 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0),
|
|
174
|
+
SDLK_KP_PERIOD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD),
|
|
175
|
+
|
|
176
|
+
SDLK_APPLICATION = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION),
|
|
177
|
+
SDLK_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER),
|
|
178
|
+
SDLK_KP_EQUALS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS),
|
|
179
|
+
SDLK_F13 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13),
|
|
180
|
+
SDLK_F14 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14),
|
|
181
|
+
SDLK_F15 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15),
|
|
182
|
+
SDLK_F16 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16),
|
|
183
|
+
SDLK_F17 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17),
|
|
184
|
+
SDLK_F18 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18),
|
|
185
|
+
SDLK_F19 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19),
|
|
186
|
+
SDLK_F20 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20),
|
|
187
|
+
SDLK_F21 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21),
|
|
188
|
+
SDLK_F22 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22),
|
|
189
|
+
SDLK_F23 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23),
|
|
190
|
+
SDLK_F24 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24),
|
|
191
|
+
SDLK_EXECUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE),
|
|
192
|
+
SDLK_HELP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP),
|
|
193
|
+
SDLK_MENU = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU),
|
|
194
|
+
SDLK_SELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT),
|
|
195
|
+
SDLK_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP),
|
|
196
|
+
SDLK_AGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN),
|
|
197
|
+
SDLK_UNDO = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO),
|
|
198
|
+
SDLK_CUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT),
|
|
199
|
+
SDLK_COPY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY),
|
|
200
|
+
SDLK_PASTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE),
|
|
201
|
+
SDLK_FIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND),
|
|
202
|
+
SDLK_MUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE),
|
|
203
|
+
SDLK_VOLUMEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP),
|
|
204
|
+
SDLK_VOLUMEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN),
|
|
205
|
+
SDLK_KP_COMMA = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA),
|
|
206
|
+
SDLK_KP_EQUALSAS400 =
|
|
207
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400),
|
|
208
|
+
|
|
209
|
+
SDLK_ALTERASE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE),
|
|
210
|
+
SDLK_SYSREQ = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ),
|
|
211
|
+
SDLK_CANCEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL),
|
|
212
|
+
SDLK_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR),
|
|
213
|
+
SDLK_PRIOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR),
|
|
214
|
+
SDLK_RETURN2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2),
|
|
215
|
+
SDLK_SEPARATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR),
|
|
216
|
+
SDLK_OUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT),
|
|
217
|
+
SDLK_OPER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER),
|
|
218
|
+
SDLK_CLEARAGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN),
|
|
219
|
+
SDLK_CRSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL),
|
|
220
|
+
SDLK_EXSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL),
|
|
221
|
+
|
|
222
|
+
SDLK_KP_00 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00),
|
|
223
|
+
SDLK_KP_000 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000),
|
|
224
|
+
SDLK_THOUSANDSSEPARATOR =
|
|
225
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR),
|
|
226
|
+
SDLK_DECIMALSEPARATOR =
|
|
227
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR),
|
|
228
|
+
SDLK_CURRENCYUNIT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT),
|
|
229
|
+
SDLK_CURRENCYSUBUNIT =
|
|
230
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT),
|
|
231
|
+
SDLK_KP_LEFTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN),
|
|
232
|
+
SDLK_KP_RIGHTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN),
|
|
233
|
+
SDLK_KP_LEFTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE),
|
|
234
|
+
SDLK_KP_RIGHTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE),
|
|
235
|
+
SDLK_KP_TAB = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB),
|
|
236
|
+
SDLK_KP_BACKSPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE),
|
|
237
|
+
SDLK_KP_A = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A),
|
|
238
|
+
SDLK_KP_B = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B),
|
|
239
|
+
SDLK_KP_C = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C),
|
|
240
|
+
SDLK_KP_D = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D),
|
|
241
|
+
SDLK_KP_E = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E),
|
|
242
|
+
SDLK_KP_F = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F),
|
|
243
|
+
SDLK_KP_XOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR),
|
|
244
|
+
SDLK_KP_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER),
|
|
245
|
+
SDLK_KP_PERCENT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT),
|
|
246
|
+
SDLK_KP_LESS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS),
|
|
247
|
+
SDLK_KP_GREATER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER),
|
|
248
|
+
SDLK_KP_AMPERSAND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND),
|
|
249
|
+
SDLK_KP_DBLAMPERSAND =
|
|
250
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND),
|
|
251
|
+
SDLK_KP_VERTICALBAR =
|
|
252
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR),
|
|
253
|
+
SDLK_KP_DBLVERTICALBAR =
|
|
254
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR),
|
|
255
|
+
SDLK_KP_COLON = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON),
|
|
256
|
+
SDLK_KP_HASH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH),
|
|
257
|
+
SDLK_KP_SPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE),
|
|
258
|
+
SDLK_KP_AT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT),
|
|
259
|
+
SDLK_KP_EXCLAM = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM),
|
|
260
|
+
SDLK_KP_MEMSTORE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE),
|
|
261
|
+
SDLK_KP_MEMRECALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL),
|
|
262
|
+
SDLK_KP_MEMCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR),
|
|
263
|
+
SDLK_KP_MEMADD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD),
|
|
264
|
+
SDLK_KP_MEMSUBTRACT =
|
|
265
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT),
|
|
266
|
+
SDLK_KP_MEMMULTIPLY =
|
|
267
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY),
|
|
268
|
+
SDLK_KP_MEMDIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE),
|
|
269
|
+
SDLK_KP_PLUSMINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS),
|
|
270
|
+
SDLK_KP_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR),
|
|
271
|
+
SDLK_KP_CLEARENTRY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY),
|
|
272
|
+
SDLK_KP_BINARY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY),
|
|
273
|
+
SDLK_KP_OCTAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL),
|
|
274
|
+
SDLK_KP_DECIMAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL),
|
|
275
|
+
SDLK_KP_HEXADECIMAL =
|
|
276
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL),
|
|
277
|
+
|
|
278
|
+
SDLK_LCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL),
|
|
279
|
+
SDLK_LSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT),
|
|
280
|
+
SDLK_LALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT),
|
|
281
|
+
SDLK_LGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI),
|
|
282
|
+
SDLK_RCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL),
|
|
283
|
+
SDLK_RSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT),
|
|
284
|
+
SDLK_RALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT),
|
|
285
|
+
SDLK_RGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI),
|
|
286
|
+
|
|
287
|
+
SDLK_MODE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE),
|
|
288
|
+
|
|
289
|
+
SDLK_AUDIONEXT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT),
|
|
290
|
+
SDLK_AUDIOPREV = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV),
|
|
291
|
+
SDLK_AUDIOSTOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP),
|
|
292
|
+
SDLK_AUDIOPLAY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY),
|
|
293
|
+
SDLK_AUDIOMUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE),
|
|
294
|
+
SDLK_MEDIASELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT),
|
|
295
|
+
SDLK_WWW = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW),
|
|
296
|
+
SDLK_MAIL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL),
|
|
297
|
+
SDLK_CALCULATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR),
|
|
298
|
+
SDLK_COMPUTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER),
|
|
299
|
+
SDLK_AC_SEARCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH),
|
|
300
|
+
SDLK_AC_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME),
|
|
301
|
+
SDLK_AC_BACK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK),
|
|
302
|
+
SDLK_AC_FORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD),
|
|
303
|
+
SDLK_AC_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP),
|
|
304
|
+
SDLK_AC_REFRESH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH),
|
|
305
|
+
SDLK_AC_BOOKMARKS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS),
|
|
306
|
+
|
|
307
|
+
SDLK_BRIGHTNESSDOWN =
|
|
308
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN),
|
|
309
|
+
SDLK_BRIGHTNESSUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP),
|
|
310
|
+
SDLK_DISPLAYSWITCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH),
|
|
311
|
+
SDLK_KBDILLUMTOGGLE =
|
|
312
|
+
SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE),
|
|
313
|
+
SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
|
|
314
|
+
SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
|
|
315
|
+
SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
|
|
316
|
+
SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP),
|
|
317
|
+
SDLK_APP1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1),
|
|
318
|
+
SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
|
|
319
|
+
|
|
320
|
+
SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
|
|
321
|
+
SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD),
|
|
322
|
+
|
|
323
|
+
SDLK_SOFTLEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTLEFT),
|
|
324
|
+
SDLK_SOFTRIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTRIGHT),
|
|
325
|
+
SDLK_CALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALL),
|
|
326
|
+
SDLK_ENDCALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ENDCALL)
|
|
327
|
+
} SDL_KeyCode;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* \brief Enumeration of valid key mods (possibly OR'd together).
|
|
331
|
+
*/
|
|
332
|
+
typedef enum
|
|
333
|
+
{
|
|
334
|
+
KMOD_NONE = 0x0000,
|
|
335
|
+
KMOD_LSHIFT = 0x0001,
|
|
336
|
+
KMOD_RSHIFT = 0x0002,
|
|
337
|
+
KMOD_LCTRL = 0x0040,
|
|
338
|
+
KMOD_RCTRL = 0x0080,
|
|
339
|
+
KMOD_LALT = 0x0100,
|
|
340
|
+
KMOD_RALT = 0x0200,
|
|
341
|
+
KMOD_LGUI = 0x0400,
|
|
342
|
+
KMOD_RGUI = 0x0800,
|
|
343
|
+
KMOD_NUM = 0x1000,
|
|
344
|
+
KMOD_CAPS = 0x2000,
|
|
345
|
+
KMOD_MODE = 0x4000,
|
|
346
|
+
KMOD_SCROLL = 0x8000,
|
|
347
|
+
|
|
348
|
+
KMOD_CTRL = KMOD_LCTRL | KMOD_RCTRL,
|
|
349
|
+
KMOD_SHIFT = KMOD_LSHIFT | KMOD_RSHIFT,
|
|
350
|
+
KMOD_ALT = KMOD_LALT | KMOD_RALT,
|
|
351
|
+
KMOD_GUI = KMOD_LGUI | KMOD_RGUI,
|
|
352
|
+
|
|
353
|
+
KMOD_RESERVED = KMOD_SCROLL /* This is for source-level compatibility with SDL 2.0.0. */
|
|
354
|
+
} SDL_Keymod;
|
|
355
|
+
|
|
356
|
+
#endif /* SDL_keycode_h_ */
|
|
357
|
+
|
|
358
|
+
/* vi: set ts=4 sw=4 expandtab: */
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Simple DirectMedia Layer
|
|
3
|
+
Copyright (C) 1997-2023 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_loadso.h
|
|
24
|
+
*
|
|
25
|
+
* System dependent library loading routines
|
|
26
|
+
*
|
|
27
|
+
* Some things to keep in mind:
|
|
28
|
+
* \li These functions only work on C function names. Other languages may
|
|
29
|
+
* have name mangling and intrinsic language support that varies from
|
|
30
|
+
* compiler to compiler.
|
|
31
|
+
* \li Make sure you declare your function pointers with the same calling
|
|
32
|
+
* convention as the actual library function. Your code will crash
|
|
33
|
+
* mysteriously if you do not do this.
|
|
34
|
+
* \li Avoid namespace collisions. If you load a symbol from the library,
|
|
35
|
+
* it is not defined whether or not it goes into the global symbol
|
|
36
|
+
* namespace for the application. If it does and it conflicts with
|
|
37
|
+
* symbols in your code or other shared libraries, you will not get
|
|
38
|
+
* the results you expect. :)
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
#ifndef SDL_loadso_h_
|
|
42
|
+
#define SDL_loadso_h_
|
|
43
|
+
|
|
44
|
+
#include "SDL_stdinc.h"
|
|
45
|
+
#include "SDL_error.h"
|
|
46
|
+
|
|
47
|
+
#include "begin_code.h"
|
|
48
|
+
/* Set up for C function definitions, even when using C++ */
|
|
49
|
+
#ifdef __cplusplus
|
|
50
|
+
extern "C" {
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Dynamically load a shared object.
|
|
55
|
+
*
|
|
56
|
+
* \param sofile a system-dependent name of the object file
|
|
57
|
+
* \returns an opaque pointer to the object handle or NULL if there was an
|
|
58
|
+
* error; call SDL_GetError() for more information.
|
|
59
|
+
*
|
|
60
|
+
* \since This function is available since SDL 2.0.0.
|
|
61
|
+
*
|
|
62
|
+
* \sa SDL_LoadFunction
|
|
63
|
+
* \sa SDL_UnloadObject
|
|
64
|
+
*/
|
|
65
|
+
extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Look up the address of the named function in a shared object.
|
|
69
|
+
*
|
|
70
|
+
* This function pointer is no longer valid after calling SDL_UnloadObject().
|
|
71
|
+
*
|
|
72
|
+
* This function can only look up C function names. Other languages may have
|
|
73
|
+
* name mangling and intrinsic language support that varies from compiler to
|
|
74
|
+
* compiler.
|
|
75
|
+
*
|
|
76
|
+
* Make sure you declare your function pointers with the same calling
|
|
77
|
+
* convention as the actual library function. Your code will crash
|
|
78
|
+
* mysteriously if you do not do this.
|
|
79
|
+
*
|
|
80
|
+
* If the requested function doesn't exist, NULL is returned.
|
|
81
|
+
*
|
|
82
|
+
* \param handle a valid shared object handle returned by SDL_LoadObject()
|
|
83
|
+
* \param name the name of the function to look up
|
|
84
|
+
* \returns a pointer to the function or NULL if there was an error; call
|
|
85
|
+
* SDL_GetError() for more information.
|
|
86
|
+
*
|
|
87
|
+
* \since This function is available since SDL 2.0.0.
|
|
88
|
+
*
|
|
89
|
+
* \sa SDL_LoadObject
|
|
90
|
+
* \sa SDL_UnloadObject
|
|
91
|
+
*/
|
|
92
|
+
extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
|
|
93
|
+
const char *name);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Unload a shared object from memory.
|
|
97
|
+
*
|
|
98
|
+
* \param handle a valid shared object handle returned by SDL_LoadObject()
|
|
99
|
+
*
|
|
100
|
+
* \since This function is available since SDL 2.0.0.
|
|
101
|
+
*
|
|
102
|
+
* \sa SDL_LoadFunction
|
|
103
|
+
* \sa SDL_LoadObject
|
|
104
|
+
*/
|
|
105
|
+
extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
|
|
106
|
+
|
|
107
|
+
/* Ends C function definitions when using C++ */
|
|
108
|
+
#ifdef __cplusplus
|
|
109
|
+
}
|
|
110
|
+
#endif
|
|
111
|
+
#include "close_code.h"
|
|
112
|
+
|
|
113
|
+
#endif /* SDL_loadso_h_ */
|
|
114
|
+
|
|
115
|
+
/* vi: set ts=4 sw=4 expandtab: */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Simple DirectMedia Layer
|
|
3
|
-
Copyright (C) 1997-
|
|
3
|
+
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
|
|
4
4
|
|
|
5
5
|
This software is provided 'as-is', without any express or implied
|
|
6
6
|
warranty. In no event will the authors be held liable for any damages
|
|
@@ -20,24 +20,18 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* \file SDL_locale.h
|
|
24
24
|
*
|
|
25
|
-
* SDL locale services
|
|
26
|
-
*
|
|
27
|
-
* This provides a way to get a list of preferred locales (language plus
|
|
28
|
-
* country) for the user. There is exactly one function:
|
|
29
|
-
* SDL_GetPreferredLocales(), which handles all the heavy lifting, and offers
|
|
30
|
-
* documentation on all the strange ways humans might have configured their
|
|
31
|
-
* language settings.
|
|
25
|
+
* Include file for SDL locale services
|
|
32
26
|
*/
|
|
33
27
|
|
|
34
|
-
#ifndef
|
|
35
|
-
#define
|
|
28
|
+
#ifndef _SDL_locale_h
|
|
29
|
+
#define _SDL_locale_h
|
|
36
30
|
|
|
37
|
-
#include
|
|
38
|
-
#include
|
|
31
|
+
#include "SDL_stdinc.h"
|
|
32
|
+
#include "SDL_error.h"
|
|
39
33
|
|
|
40
|
-
#include
|
|
34
|
+
#include "begin_code.h"
|
|
41
35
|
/* Set up for C function definitions, even when using C++ */
|
|
42
36
|
#ifdef __cplusplus
|
|
43
37
|
/* *INDENT-OFF* */
|
|
@@ -45,18 +39,7 @@ extern "C" {
|
|
|
45
39
|
/* *INDENT-ON* */
|
|
46
40
|
#endif
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
* A struct to provide locale data.
|
|
50
|
-
*
|
|
51
|
-
* Locale data is split into a spoken language, like English, and an optional
|
|
52
|
-
* country, like Canada. The language will be in ISO-639 format (so English
|
|
53
|
-
* would be "en"), and the country, if not NULL, will be an ISO-3166 country
|
|
54
|
-
* code (so Canada would be "CA").
|
|
55
|
-
*
|
|
56
|
-
* \since This function is available since SDL 3.2.0.
|
|
57
|
-
*
|
|
58
|
-
* \sa SDL_GetPreferredLocales
|
|
59
|
-
*/
|
|
42
|
+
|
|
60
43
|
typedef struct SDL_Locale
|
|
61
44
|
{
|
|
62
45
|
const char *language; /**< A language name, like "en" for English. */
|
|
@@ -66,6 +49,11 @@ typedef struct SDL_Locale
|
|
|
66
49
|
/**
|
|
67
50
|
* Report the user's preferred locale.
|
|
68
51
|
*
|
|
52
|
+
* This returns an array of SDL_Locale structs, the final item zeroed out.
|
|
53
|
+
* When the caller is done with this array, it should call SDL_free() on the
|
|
54
|
+
* returned value; all the memory involved is allocated in a single block, so
|
|
55
|
+
* a single SDL_free() will suffice.
|
|
56
|
+
*
|
|
69
57
|
* Returned language strings are in the format xx, where 'xx' is an ISO-639
|
|
70
58
|
* language specifier (such as "en" for English, "de" for German, etc).
|
|
71
59
|
* Country strings are in the format YY, where "YY" is an ISO-3166 country
|
|
@@ -91,22 +79,16 @@ typedef struct SDL_Locale
|
|
|
91
79
|
* This might be a "slow" call that has to query the operating system. It's
|
|
92
80
|
* best to ask for this once and save the results. However, this list can
|
|
93
81
|
* change, usually because the user has changed a system preference outside of
|
|
94
|
-
* your program; SDL will send an
|
|
95
|
-
*
|
|
82
|
+
* your program; SDL will send an SDL_LOCALECHANGED event in this case, if
|
|
83
|
+
* possible, and you can call this function again to get an updated copy of
|
|
96
84
|
* preferred locales.
|
|
97
85
|
*
|
|
98
|
-
* \
|
|
99
|
-
*
|
|
100
|
-
* \returns a NULL terminated array of locale pointers, or NULL on failure;
|
|
101
|
-
* call SDL_GetError() for more information. This is a single
|
|
102
|
-
* allocation that should be freed with SDL_free() when it is no
|
|
103
|
-
* longer needed.
|
|
86
|
+
* \return array of locales, terminated with a locale with a NULL language
|
|
87
|
+
* field. Will return NULL on error.
|
|
104
88
|
*
|
|
105
|
-
* \
|
|
106
|
-
*
|
|
107
|
-
* \since This function is available since SDL 3.2.0.
|
|
89
|
+
* \since This function is available since SDL 2.0.14.
|
|
108
90
|
*/
|
|
109
|
-
extern
|
|
91
|
+
extern DECLSPEC SDL_Locale * SDLCALL SDL_GetPreferredLocales(void);
|
|
110
92
|
|
|
111
93
|
/* Ends C function definitions when using C++ */
|
|
112
94
|
#ifdef __cplusplus
|
|
@@ -114,6 +96,8 @@ extern SDL_DECLSPEC SDL_Locale ** SDLCALL SDL_GetPreferredLocales(int *count);
|
|
|
114
96
|
}
|
|
115
97
|
/* *INDENT-ON* */
|
|
116
98
|
#endif
|
|
117
|
-
#include
|
|
99
|
+
#include "close_code.h"
|
|
100
|
+
|
|
101
|
+
#endif /* _SDL_locale_h */
|
|
118
102
|
|
|
119
|
-
|
|
103
|
+
/* vi: set ts=4 sw=4 expandtab: */
|