ruby2d 0.11.0 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/include/SDL2/SDL.h +108 -14
- data/assets/include/SDL2/SDL_assert.h +81 -50
- data/assets/include/SDL2/SDL_atomic.h +135 -35
- data/assets/include/SDL2/SDL_audio.h +960 -355
- data/assets/include/SDL2/SDL_bits.h +11 -6
- data/assets/include/SDL2/SDL_blendmode.h +91 -14
- data/assets/include/SDL2/SDL_clipboard.h +30 -7
- data/assets/include/SDL2/SDL_config.h +3 -1
- data/assets/include/SDL2/SDL_config_android.h +11 -1
- data/assets/include/SDL2/SDL_config_emscripten.h +216 -0
- data/assets/include/SDL2/SDL_config_iphoneos.h +9 -1
- data/assets/include/SDL2/SDL_config_macosx.h +16 -2
- data/assets/include/SDL2/SDL_config_minimal.h +4 -1
- data/assets/include/SDL2/SDL_config_os2.h +37 -20
- data/assets/include/SDL2/SDL_config_pandora.h +6 -1
- data/assets/include/SDL2/SDL_config_psp.h +8 -8
- data/assets/include/SDL2/SDL_config_windows.h +39 -22
- data/assets/include/SDL2/SDL_config_winrt.h +23 -8
- data/assets/include/SDL2/SDL_config_wiz.h +6 -1
- data/assets/include/SDL2/SDL_copying.h +1 -1
- data/assets/include/SDL2/SDL_cpuinfo.h +331 -71
- data/assets/include/SDL2/SDL_egl.h +906 -280
- data/assets/include/SDL2/SDL_endian.h +101 -47
- data/assets/include/SDL2/SDL_error.h +70 -19
- data/assets/include/SDL2/SDL_events.h +387 -79
- data/assets/include/SDL2/SDL_filesystem.h +73 -64
- data/assets/include/SDL2/SDL_gamecontroller.h +585 -125
- data/assets/include/SDL2/SDL_gesture.h +36 -6
- data/assets/include/SDL2/SDL_haptic.h +304 -210
- data/assets/include/SDL2/SDL_hidapi.h +451 -0
- data/assets/include/SDL2/SDL_hints.h +1286 -897
- data/assets/include/SDL2/SDL_joystick.h +577 -130
- data/assets/include/SDL2/SDL_keyboard.h +162 -63
- data/assets/include/SDL2/SDL_keycode.h +7 -5
- data/assets/include/SDL2/SDL_loadso.h +42 -8
- data/assets/include/SDL2/SDL_locale.h +34 -32
- data/assets/include/SDL2/SDL_log.h +212 -19
- data/assets/include/SDL2/SDL_main.h +72 -17
- data/assets/include/SDL2/SDL_messagebox.h +70 -23
- data/assets/include/SDL2/SDL_metal.h +27 -32
- data/assets/include/SDL2/SDL_misc.h +19 -15
- data/assets/include/SDL2/SDL_mouse.h +262 -110
- data/assets/include/SDL2/SDL_mutex.h +286 -66
- data/assets/include/SDL2/SDL_name.h +1 -1
- data/assets/include/SDL2/SDL_opengl.h +1 -1
- data/assets/include/SDL2/SDL_opengles.h +1 -1
- data/assets/include/SDL2/SDL_opengles2.h +2 -2
- data/assets/include/SDL2/SDL_pixels.h +199 -34
- data/assets/include/SDL2/SDL_platform.h +39 -2
- data/assets/include/SDL2/SDL_power.h +23 -10
- data/assets/include/SDL2/SDL_quit.h +1 -1
- data/assets/include/SDL2/SDL_rect.h +78 -28
- data/assets/include/SDL2/SDL_render.h +1204 -472
- data/assets/include/SDL2/SDL_revision.h +2 -2
- data/assets/include/SDL2/SDL_rwops.h +605 -33
- data/assets/include/SDL2/SDL_scancode.h +1 -1
- data/assets/include/SDL2/SDL_sensor.h +76 -42
- data/assets/include/SDL2/SDL_shape.h +38 -27
- data/assets/include/SDL2/SDL_stdinc.h +96 -24
- data/assets/include/SDL2/SDL_surface.h +571 -139
- data/assets/include/SDL2/SDL_system.h +339 -101
- data/assets/include/SDL2/SDL_syswm.h +50 -20
- data/assets/include/SDL2/SDL_test.h +1 -1
- data/assets/include/SDL2/SDL_test_assert.h +2 -2
- data/assets/include/SDL2/SDL_test_common.h +23 -6
- data/assets/include/SDL2/SDL_test_compare.h +1 -1
- data/assets/include/SDL2/SDL_test_crc32.h +1 -1
- data/assets/include/SDL2/SDL_test_font.h +3 -3
- data/assets/include/SDL2/SDL_test_fuzzer.h +28 -26
- data/assets/include/SDL2/SDL_test_harness.h +6 -6
- data/assets/include/SDL2/SDL_test_images.h +1 -1
- data/assets/include/SDL2/SDL_test_log.h +1 -1
- data/assets/include/SDL2/SDL_test_md5.h +1 -1
- data/assets/include/SDL2/SDL_test_memory.h +1 -1
- data/assets/include/SDL2/SDL_test_random.h +2 -2
- data/assets/include/SDL2/SDL_thread.h +226 -128
- data/assets/include/SDL2/SDL_timer.h +129 -22
- data/assets/include/SDL2/SDL_touch.h +48 -8
- data/assets/include/SDL2/SDL_ttf.h +102 -9
- data/assets/include/SDL2/SDL_types.h +1 -1
- data/assets/include/SDL2/SDL_version.h +72 -46
- data/assets/include/SDL2/SDL_video.h +1266 -460
- data/assets/include/SDL2/SDL_vulkan.h +100 -161
- data/assets/include/SDL2/begin_code.h +22 -1
- data/assets/include/SDL2/close_code.h +1 -1
- data/assets/include/mrbconf.h +234 -0
- data/assets/include/mruby/array.h +317 -0
- data/assets/include/mruby/boxing_nan.h +130 -0
- data/assets/include/mruby/boxing_no.h +58 -0
- data/assets/include/mruby/boxing_word.h +205 -0
- data/assets/include/mruby/class.h +108 -0
- data/assets/include/mruby/common.h +92 -0
- data/assets/include/mruby/compile.h +210 -0
- data/assets/include/mruby/data.h +76 -0
- data/assets/include/mruby/debug.h +66 -0
- data/assets/include/mruby/dump.h +158 -0
- data/assets/include/mruby/endian.h +44 -0
- data/assets/include/mruby/error.h +137 -0
- data/assets/include/mruby/gc.h +92 -0
- data/assets/include/mruby/hash.h +242 -0
- data/assets/include/mruby/irep.h +147 -0
- data/assets/include/mruby/istruct.h +50 -0
- data/assets/include/mruby/khash.h +284 -0
- data/assets/include/mruby/numeric.h +169 -0
- data/assets/include/mruby/object.h +43 -0
- data/assets/include/mruby/opcode.h +43 -0
- data/assets/include/mruby/ops.h +122 -0
- data/assets/include/mruby/presym/disable.h +70 -0
- data/assets/include/mruby/presym/enable.h +37 -0
- data/assets/include/mruby/presym/scanning.h +73 -0
- data/assets/include/mruby/presym.h +40 -0
- data/assets/include/mruby/proc.h +209 -0
- data/assets/include/mruby/range.h +79 -0
- data/assets/include/mruby/re.h +16 -0
- data/assets/include/mruby/string.h +469 -0
- data/assets/include/mruby/throw.h +66 -0
- data/assets/include/mruby/value.h +400 -0
- data/assets/include/mruby/variable.h +140 -0
- data/assets/include/mruby/version.h +143 -0
- data/assets/include/mruby.h +1444 -0
- data/assets/macos/universal/bin/mrbc +0 -0
- data/assets/macos/universal/lib/libFLAC.a +0 -0
- data/assets/macos/universal/lib/libSDL2.a +0 -0
- data/assets/macos/universal/lib/libSDL2_image.a +0 -0
- data/assets/macos/{lib → universal/lib}/libSDL2_mixer.a +0 -0
- data/assets/macos/universal/lib/libSDL2_ttf.a +0 -0
- data/assets/macos/universal/lib/libfreetype.a +0 -0
- data/assets/macos/universal/lib/libgraphite2.a +0 -0
- data/assets/macos/universal/lib/libharfbuzz.a +0 -0
- data/assets/macos/universal/lib/libjpeg.a +0 -0
- data/assets/macos/universal/lib/libmodplug.a +0 -0
- data/assets/macos/{lib → universal/lib}/libmpg123.a +0 -0
- data/assets/{mingw/lib/libSDL2.a → macos/universal/lib/libmruby.a} +0 -0
- data/assets/macos/{lib → universal/lib}/libogg.a +0 -0
- data/assets/macos/universal/lib/libpng16.a +0 -0
- data/assets/macos/universal/lib/libtiff.a +0 -0
- data/assets/macos/universal/lib/libvorbis.a +0 -0
- data/assets/macos/universal/lib/libvorbisfile.a +0 -0
- data/assets/macos/universal/lib/libwebp.a +0 -0
- data/assets/test_media/README.md +3 -0
- data/assets/test_media/bitstream_vera/COPYRIGHT.txt +124 -0
- data/assets/test_media/bitstream_vera/vera.ttf +0 -0
- data/assets/test_media/boom.png +0 -0
- data/assets/test_media/coin.png +0 -0
- data/assets/test_media/colors.png +0 -0
- data/assets/test_media/controller.png +0 -0
- data/assets/test_media/dial.wav +0 -0
- data/assets/test_media/hero.png +0 -0
- data/assets/test_media/image.bmp +0 -0
- data/assets/test_media/image.jpg +0 -0
- data/assets/test_media/image.png +0 -0
- data/assets/test_media/music.flac +0 -0
- data/assets/test_media/music.mp3 +0 -0
- data/assets/test_media/music.ogg +0 -0
- data/assets/test_media/music.wav +0 -0
- data/assets/test_media/originals/boom.pxm +0 -0
- data/assets/test_media/originals/coin.pxm +0 -0
- data/assets/test_media/originals/controller.sketch +0 -0
- data/assets/test_media/originals/hero.pxm +0 -0
- data/assets/test_media/originals/image.pxm +0 -0
- data/assets/test_media/originals/music.caf +0 -0
- data/assets/test_media/originals/texture_atlas.pxm +0 -0
- data/assets/test_media/rondo_alla_turka.ogg +0 -0
- data/assets/test_media/sound.flac +0 -0
- data/assets/test_media/sound.mp3 +0 -0
- data/assets/test_media/sound.ogg +0 -0
- data/assets/test_media/sound.wav +0 -0
- data/assets/test_media/sprite_sheet.png +0 -0
- data/assets/test_media/texture_atlas.png +0 -0
- data/assets/wasm/libmruby.a +0 -0
- data/assets/wasm/template.html +64 -0
- data/assets/windows/glew/README.md +10 -0
- data/assets/windows/glew/glew.h +23686 -0
- data/assets/{mingw/lib → windows/glew}/libglew32.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/bin/mrbc.exe +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libFLAC.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libLerc.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_image.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_mixer.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libSDL2_ttf.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlicommon.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbrotlidec.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libbz2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libdeflate.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libfreetype.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libglew32.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libgraphite2.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libharfbuzz.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjbig.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libjpeg.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/liblzma.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmodplug.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmpg123.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libmruby.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libogg.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopus.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libopusfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libpng16.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libsndfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libssp.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libstdc++.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libtiff.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbis.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libvorbisfile.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libwebp.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libz.a +0 -0
- data/assets/windows/mingw-w64-ucrt-x86_64/lib/libzstd.a +0 -0
- data/assets/windows/mingw-w64-x86_64/bin/mrbc.exe +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libFLAC.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libLerc.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_image.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_mixer.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libSDL2_ttf.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbrotlicommon.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbrotlidec.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libbz2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libdeflate.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libfreetype.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libglew32.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libgraphite2.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libharfbuzz.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libjbig.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libjpeg.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/liblzma.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmodplug.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmpg123.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libmruby.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libogg.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libopus.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libopusfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libpng16.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libsndfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libssp.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libstdc++.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libtiff.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libvorbis.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libvorbisfile.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libwebp.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libz.a +0 -0
- data/assets/windows/mingw-w64-x86_64/lib/libzstd.a +0 -0
- data/assets/{ios → xcode/ios}/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/assets/{ios → xcode/ios}/Assets.xcassets/Contents.json +0 -0
- data/assets/{ios → xcode/ios}/Base.lproj/LaunchScreen.storyboard +0 -0
- data/assets/{ios → xcode/ios}/Info.plist +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mrbconf.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/array.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/class.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/common.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/compile.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/data.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/debug.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/dump.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/error.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/gc.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/hash.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/irep.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/istruct.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/khash.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/numeric.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/object.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/opcode.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/ops.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/proc.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/range.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/re.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/string.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/throw.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/value.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/variable.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby/version.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Headers/mruby.h +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/Info.plist +0 -0
- data/assets/{ios → xcode/ios}/MRuby.framework/MRuby +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.pbxproj +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- data/assets/{ios → xcode/ios}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
- data/assets/{ios → xcode/ios}/main.c +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Assets.xcassets/LaunchImage.launchimage/Contents.json +0 -0
- data/assets/{tvos → xcode/tvos}/Info.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mrbconf.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/array.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_nan.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_no.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/boxing_word.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/class.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/common.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/compile.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/data.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/debug.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/dump.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/error.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/gc.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/hash.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/irep.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/istruct.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/khash.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/numeric.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/object.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/opcode.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/ops.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/proc.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/range.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/re.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/string.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/throw.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/value.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/variable.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby/version.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Headers/mruby.h +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/Info.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MRuby.framework/MRuby +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.pbxproj +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- data/assets/{tvos → xcode/tvos}/MyApp.xcodeproj/project.xcworkspace/xcshareddata/MyApp.xcscmblueprint +0 -0
- data/assets/{tvos → xcode/tvos}/main.c +0 -0
- data/bin/ruby2d +3 -4
- data/ext/ruby2d/extconf.rb +44 -25
- data/ext/ruby2d/gl.c +1 -1
- data/ext/ruby2d/gl3.c +0 -1
- data/ext/ruby2d/gles.c +137 -84
- data/ext/ruby2d/ruby2d.c +126 -32
- data/ext/ruby2d/ruby2d.h +53 -6
- data/ext/ruby2d/text.c +14 -1
- data/ext/ruby2d/window.c +253 -215
- data/lib/ruby2d/cli/build.rb +242 -59
- data/lib/ruby2d/cli/colorize.rb +5 -4
- data/lib/ruby2d/cli/platform.rb +17 -0
- data/lib/ruby2d/font.rb +7 -1
- data/lib/ruby2d/sprite.rb +7 -2
- data/lib/ruby2d/text.rb +1 -3
- data/lib/ruby2d/texture.rb +21 -21
- data/lib/ruby2d/tileset.rb +34 -33
- data/lib/ruby2d/version.rb +1 -1
- data/lib/ruby2d/vertices.rb +11 -6
- data/lib/ruby2d.rb +14 -20
- metadata +279 -151
- data/assets/README.md +0 -22
- data/assets/Rakefile +0 -85
- data/assets/macos/lib/libFLAC.a +0 -0
- data/assets/macos/lib/libSDL2.a +0 -0
- data/assets/macos/lib/libSDL2_image.a +0 -0
- data/assets/macos/lib/libSDL2_ttf.a +0 -0
- data/assets/macos/lib/libfreetype.a +0 -0
- data/assets/macos/lib/libjpeg.a +0 -0
- data/assets/macos/lib/libpng16.a +0 -0
- data/assets/macos/lib/libtiff.a +0 -0
- data/assets/macos/lib/libvorbis.a +0 -0
- data/assets/macos/lib/libvorbisfile.a +0 -0
- data/assets/macos/lib/libwebp.a +0 -0
- data/assets/mingw/bin/SDL2.dll +0 -0
- data/assets/mingw/bin/SDL2_image.dll +0 -0
- data/assets/mingw/bin/SDL2_mixer.dll +0 -0
- data/assets/mingw/bin/SDL2_ttf.dll +0 -0
- data/assets/mingw/bin/glew32.dll +0 -0
- data/assets/mingw/bin/libFLAC-8.dll +0 -0
- data/assets/mingw/bin/libfreetype-6.dll +0 -0
- data/assets/mingw/bin/libjpeg-9.dll +0 -0
- data/assets/mingw/bin/libmodplug-1.dll +0 -0
- data/assets/mingw/bin/libmpg123-0.dll +0 -0
- data/assets/mingw/bin/libogg-0.dll +0 -0
- data/assets/mingw/bin/libopus-0.dll +0 -0
- data/assets/mingw/bin/libopusfile-0.dll +0 -0
- data/assets/mingw/bin/libpng16-16.dll +0 -0
- data/assets/mingw/bin/libtiff-5.dll +0 -0
- data/assets/mingw/bin/libvorbis-0.dll +0 -0
- data/assets/mingw/bin/libvorbisfile-3.dll +0 -0
- data/assets/mingw/bin/libwebp-7.dll +0 -0
- data/assets/mingw/bin/zlib1.dll +0 -0
- data/assets/mingw/lib/libSDL2.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_image.a +0 -0
- data/assets/mingw/lib/libSDL2_image.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_mixer.a +0 -0
- data/assets/mingw/lib/libSDL2_mixer.dll.a +0 -0
- data/assets/mingw/lib/libSDL2_test.a +0 -0
- data/assets/mingw/lib/libSDL2_ttf.a +0 -0
- data/assets/mingw/lib/libSDL2_ttf.dll.a +0 -0
- data/assets/mingw/lib/libSDL2main.a +0 -0
- data/assets/mingw/lib/libglew32.dll.a +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 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
|
@@ -55,154 +55,253 @@ typedef struct SDL_Keysym
|
|
55
55
|
/* Function prototypes */
|
56
56
|
|
57
57
|
/**
|
58
|
-
*
|
58
|
+
* Query the window which currently has keyboard focus.
|
59
|
+
*
|
60
|
+
* \returns the window with keyboard focus.
|
61
|
+
*
|
62
|
+
* \since This function is available since SDL 2.0.0.
|
59
63
|
*/
|
60
64
|
extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
|
61
65
|
|
62
66
|
/**
|
63
|
-
*
|
67
|
+
* Get a snapshot of the current state of the keyboard.
|
68
|
+
*
|
69
|
+
* The pointer returned is a pointer to an internal SDL array. It will be
|
70
|
+
* valid for the whole lifetime of the application and should not be freed by
|
71
|
+
* the caller.
|
72
|
+
*
|
73
|
+
* A array element with a value of 1 means that the key is pressed and a value
|
74
|
+
* of 0 means that it is not. Indexes into this array are obtained by using
|
75
|
+
* SDL_Scancode values.
|
76
|
+
*
|
77
|
+
* Use SDL_PumpEvents() to update the state array.
|
64
78
|
*
|
65
|
-
*
|
79
|
+
* This function gives you the current state after all events have been
|
80
|
+
* processed, so if a key or button has been pressed and released before you
|
81
|
+
* process events, then the pressed state will never show up in the
|
82
|
+
* SDL_GetKeyboardState() calls.
|
66
83
|
*
|
67
|
-
*
|
84
|
+
* Note: This function doesn't take into account whether shift has been
|
85
|
+
* pressed or not.
|
68
86
|
*
|
69
|
-
*
|
70
|
-
*
|
71
|
-
*
|
72
|
-
*
|
73
|
-
*
|
74
|
-
*
|
75
|
-
* \endcode
|
87
|
+
* \param numkeys if non-NULL, receives the length of the returned array
|
88
|
+
* \returns a pointer to an array of key states.
|
89
|
+
*
|
90
|
+
* \since This function is available since SDL 2.0.0.
|
91
|
+
*
|
92
|
+
* \sa SDL_PumpEvents
|
76
93
|
*/
|
77
94
|
extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
|
78
95
|
|
79
96
|
/**
|
80
|
-
*
|
97
|
+
* Get the current key modifier state for the keyboard.
|
98
|
+
*
|
99
|
+
* \returns an OR'd combination of the modifier keys for the keyboard. See
|
100
|
+
* SDL_Keymod for details.
|
101
|
+
*
|
102
|
+
* \since This function is available since SDL 2.0.0.
|
103
|
+
*
|
104
|
+
* \sa SDL_GetKeyboardState
|
105
|
+
* \sa SDL_SetModState
|
81
106
|
*/
|
82
107
|
extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);
|
83
108
|
|
84
109
|
/**
|
85
|
-
*
|
110
|
+
* Set the current key modifier state for the keyboard.
|
111
|
+
*
|
112
|
+
* The inverse of SDL_GetModState(), SDL_SetModState() allows you to impose
|
113
|
+
* modifier key states on your application. Simply pass your desired modifier
|
114
|
+
* states into `modstate`. This value may be a bitwise, OR'd combination of
|
115
|
+
* SDL_Keymod values.
|
116
|
+
*
|
117
|
+
* This does not change the keyboard state, only the key modifier flags that
|
118
|
+
* SDL reports.
|
119
|
+
*
|
120
|
+
* \param modstate the desired SDL_Keymod for the keyboard
|
86
121
|
*
|
87
|
-
*
|
122
|
+
* \since This function is available since SDL 2.0.0.
|
123
|
+
*
|
124
|
+
* \sa SDL_GetModState
|
88
125
|
*/
|
89
126
|
extern DECLSPEC void SDLCALL SDL_SetModState(SDL_Keymod modstate);
|
90
127
|
|
91
128
|
/**
|
92
|
-
*
|
93
|
-
*
|
129
|
+
* Get the key code corresponding to the given scancode according to the
|
130
|
+
* current keyboard layout.
|
131
|
+
*
|
132
|
+
* See SDL_Keycode for details.
|
94
133
|
*
|
95
|
-
*
|
134
|
+
* \param scancode the desired SDL_Scancode to query
|
135
|
+
* \returns the SDL_Keycode that corresponds to the given SDL_Scancode.
|
96
136
|
*
|
97
|
-
*
|
137
|
+
* \since This function is available since SDL 2.0.0.
|
138
|
+
*
|
139
|
+
* \sa SDL_GetKeyName
|
140
|
+
* \sa SDL_GetScancodeFromKey
|
98
141
|
*/
|
99
142
|
extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode);
|
100
143
|
|
101
144
|
/**
|
102
|
-
*
|
103
|
-
*
|
145
|
+
* Get the scancode corresponding to the given key code according to the
|
146
|
+
* current keyboard layout.
|
147
|
+
*
|
148
|
+
* See SDL_Scancode for details.
|
104
149
|
*
|
105
|
-
*
|
150
|
+
* \param key the desired SDL_Keycode to query
|
151
|
+
* \returns the SDL_Scancode that corresponds to the given SDL_Keycode.
|
106
152
|
*
|
107
|
-
*
|
153
|
+
* \since This function is available since SDL 2.0.0.
|
154
|
+
*
|
155
|
+
* \sa SDL_GetKeyFromScancode
|
156
|
+
* \sa SDL_GetScancodeName
|
108
157
|
*/
|
109
158
|
extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Keycode key);
|
110
159
|
|
111
160
|
/**
|
112
|
-
*
|
161
|
+
* Get a human-readable name for a scancode.
|
162
|
+
*
|
163
|
+
* See SDL_Scancode for details.
|
164
|
+
*
|
165
|
+
* **Warning**: The returned name is by design not stable across platforms,
|
166
|
+
* e.g. the name for `SDL_SCANCODE_LGUI` is "Left GUI" under Linux but "Left
|
167
|
+
* Windows" under Microsoft Windows, and some scancodes like
|
168
|
+
* `SDL_SCANCODE_NONUSBACKSLASH` don't have any name at all. There are even
|
169
|
+
* scancodes that share names, e.g. `SDL_SCANCODE_RETURN` and
|
170
|
+
* `SDL_SCANCODE_RETURN2` (both called "Return"). This function is therefore
|
171
|
+
* unsuitable for creating a stable cross-platform two-way mapping between
|
172
|
+
* strings and scancodes.
|
173
|
+
*
|
174
|
+
* \param scancode the desired SDL_Scancode to query
|
175
|
+
* \returns a pointer to the name for the scancode. If the scancode doesn't
|
176
|
+
* have a name this function returns an empty string ("").
|
113
177
|
*
|
114
|
-
*
|
115
|
-
* If the scancode doesn't have a name, this function returns
|
116
|
-
* an empty string ("").
|
178
|
+
* \since This function is available since SDL 2.0.0.
|
117
179
|
*
|
118
|
-
*
|
180
|
+
* \sa SDL_GetScancodeFromKey
|
181
|
+
* \sa SDL_GetScancodeFromName
|
119
182
|
*/
|
120
183
|
extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_Scancode scancode);
|
121
184
|
|
122
185
|
/**
|
123
|
-
*
|
186
|
+
* Get a scancode from a human-readable name.
|
124
187
|
*
|
125
|
-
*
|
188
|
+
* \param name the human-readable scancode name
|
189
|
+
* \returns the SDL_Scancode, or `SDL_SCANCODE_UNKNOWN` if the name wasn't
|
190
|
+
* recognized; call SDL_GetError() for more information.
|
126
191
|
*
|
127
|
-
*
|
192
|
+
* \since This function is available since SDL 2.0.0.
|
193
|
+
*
|
194
|
+
* \sa SDL_GetKeyFromName
|
195
|
+
* \sa SDL_GetScancodeFromKey
|
196
|
+
* \sa SDL_GetScancodeName
|
128
197
|
*/
|
129
198
|
extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromName(const char *name);
|
130
199
|
|
131
200
|
/**
|
132
|
-
*
|
201
|
+
* Get a human-readable name for a key.
|
202
|
+
*
|
203
|
+
* See SDL_Scancode and SDL_Keycode for details.
|
133
204
|
*
|
134
|
-
*
|
135
|
-
*
|
136
|
-
*
|
137
|
-
*
|
205
|
+
* \param key the desired SDL_Keycode to query
|
206
|
+
* \returns a pointer to a UTF-8 string that stays valid at least until the
|
207
|
+
* next call to this function. If you need it around any longer, you
|
208
|
+
* must copy it. If the key doesn't have a name, this function
|
209
|
+
* returns an empty string ("").
|
138
210
|
*
|
139
|
-
*
|
211
|
+
* \since This function is available since SDL 2.0.0.
|
212
|
+
*
|
213
|
+
* \sa SDL_GetKeyFromName
|
214
|
+
* \sa SDL_GetKeyFromScancode
|
215
|
+
* \sa SDL_GetScancodeFromKey
|
140
216
|
*/
|
141
217
|
extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDL_Keycode key);
|
142
218
|
|
143
219
|
/**
|
144
|
-
*
|
220
|
+
* Get a key code from a human-readable name.
|
221
|
+
*
|
222
|
+
* \param name the human-readable key name
|
223
|
+
* \returns key code, or `SDLK_UNKNOWN` if the name wasn't recognized; call
|
224
|
+
* SDL_GetError() for more information.
|
145
225
|
*
|
146
|
-
*
|
226
|
+
* \since This function is available since SDL 2.0.0.
|
147
227
|
*
|
148
|
-
*
|
228
|
+
* \sa SDL_GetKeyFromScancode
|
229
|
+
* \sa SDL_GetKeyName
|
230
|
+
* \sa SDL_GetScancodeFromName
|
149
231
|
*/
|
150
232
|
extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromName(const char *name);
|
151
233
|
|
152
234
|
/**
|
153
|
-
*
|
154
|
-
* This function will show the on-screen keyboard if supported.
|
235
|
+
* Start accepting Unicode text input events.
|
155
236
|
*
|
156
|
-
*
|
157
|
-
*
|
158
|
-
*
|
237
|
+
* This function will start accepting Unicode text input events in the focused
|
238
|
+
* SDL window, and start emitting SDL_TextInputEvent (SDL_TEXTINPUT) and
|
239
|
+
* SDL_TextEditingEvent (SDL_TEXTEDITING) events. Please use this function in
|
240
|
+
* pair with SDL_StopTextInput().
|
241
|
+
*
|
242
|
+
* On some platforms using this function activates the screen keyboard.
|
243
|
+
*
|
244
|
+
* \since This function is available since SDL 2.0.0.
|
245
|
+
*
|
246
|
+
* \sa SDL_SetTextInputRect
|
247
|
+
* \sa SDL_StopTextInput
|
159
248
|
*/
|
160
249
|
extern DECLSPEC void SDLCALL SDL_StartTextInput(void);
|
161
250
|
|
162
251
|
/**
|
163
|
-
*
|
252
|
+
* Check whether or not Unicode text input events are enabled.
|
253
|
+
*
|
254
|
+
* \returns SDL_TRUE if text input events are enabled else SDL_FALSE.
|
164
255
|
*
|
165
|
-
*
|
166
|
-
*
|
256
|
+
* \since This function is available since SDL 2.0.0.
|
257
|
+
*
|
258
|
+
* \sa SDL_StartTextInput
|
167
259
|
*/
|
168
260
|
extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputActive(void);
|
169
261
|
|
170
262
|
/**
|
171
|
-
*
|
172
|
-
*
|
263
|
+
* Stop receiving any text input events.
|
264
|
+
*
|
265
|
+
* \since This function is available since SDL 2.0.0.
|
173
266
|
*
|
174
|
-
*
|
175
|
-
* \sa SDL_HasScreenKeyboardSupport()
|
267
|
+
* \sa SDL_StartTextInput
|
176
268
|
*/
|
177
269
|
extern DECLSPEC void SDLCALL SDL_StopTextInput(void);
|
178
270
|
|
179
271
|
/**
|
180
|
-
*
|
181
|
-
*
|
272
|
+
* Set the rectangle used to type Unicode text inputs.
|
273
|
+
*
|
274
|
+
* \param rect the SDL_Rect structure representing the rectangle to receive
|
275
|
+
* text (ignored if NULL)
|
276
|
+
*
|
277
|
+
* \since This function is available since SDL 2.0.0.
|
182
278
|
*
|
183
|
-
*
|
279
|
+
* \sa SDL_StartTextInput
|
184
280
|
*/
|
185
281
|
extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
|
186
282
|
|
187
283
|
/**
|
188
|
-
*
|
284
|
+
* Check whether the platform has screen keyboard support.
|
189
285
|
*
|
190
|
-
*
|
286
|
+
* \returns SDL_TRUE if the platform has some screen keyboard support or
|
287
|
+
* SDL_FALSE if not.
|
191
288
|
*
|
192
|
-
*
|
289
|
+
* \since This function is available since SDL 2.0.0.
|
193
290
|
*
|
194
|
-
*
|
291
|
+
* \sa SDL_StartTextInput
|
292
|
+
* \sa SDL_IsScreenKeyboardShown
|
195
293
|
*/
|
196
294
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasScreenKeyboardSupport(void);
|
197
295
|
|
198
296
|
/**
|
199
|
-
*
|
297
|
+
* Check whether the screen keyboard is shown for given window.
|
200
298
|
*
|
201
|
-
*
|
299
|
+
* \param window the window for which screen keyboard should be queried
|
300
|
+
* \returns SDL_TRUE if screen keyboard is shown or SDL_FALSE if not.
|
202
301
|
*
|
203
|
-
*
|
302
|
+
* \since This function is available since SDL 2.0.0.
|
204
303
|
*
|
205
|
-
*
|
304
|
+
* \sa SDL_HasScreenKeyboardSupport
|
206
305
|
*/
|
207
306
|
extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenKeyboardShown(SDL_Window *window);
|
208
307
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 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
|
@@ -52,7 +52,7 @@ typedef enum
|
|
52
52
|
SDLK_UNKNOWN = 0,
|
53
53
|
|
54
54
|
SDLK_RETURN = '\r',
|
55
|
-
SDLK_ESCAPE = '\
|
55
|
+
SDLK_ESCAPE = '\x1B',
|
56
56
|
SDLK_BACKSPACE = '\b',
|
57
57
|
SDLK_TAB = '\t',
|
58
58
|
SDLK_SPACE = ' ',
|
@@ -147,7 +147,7 @@ typedef enum
|
|
147
147
|
SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
|
148
148
|
SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
|
149
149
|
SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
|
150
|
-
SDLK_DELETE = '\
|
150
|
+
SDLK_DELETE = '\x7F',
|
151
151
|
SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
|
152
152
|
SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
|
153
153
|
SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),
|
@@ -338,12 +338,14 @@ typedef enum
|
|
338
338
|
KMOD_NUM = 0x1000,
|
339
339
|
KMOD_CAPS = 0x2000,
|
340
340
|
KMOD_MODE = 0x4000,
|
341
|
-
|
341
|
+
KMOD_SCROLL = 0x8000,
|
342
342
|
|
343
343
|
KMOD_CTRL = KMOD_LCTRL | KMOD_RCTRL,
|
344
344
|
KMOD_SHIFT = KMOD_LSHIFT | KMOD_RSHIFT,
|
345
345
|
KMOD_ALT = KMOD_LALT | KMOD_RALT,
|
346
|
-
KMOD_GUI = KMOD_LGUI | KMOD_RGUI
|
346
|
+
KMOD_GUI = KMOD_LGUI | KMOD_RGUI,
|
347
|
+
|
348
|
+
KMOD_RESERVED = KMOD_SCROLL /* This is for source-level compatibility with SDL 2.0.0. */
|
347
349
|
} SDL_Keymod;
|
348
350
|
|
349
351
|
#endif /* SDL_keycode_h_ */
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 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
|
@@ -51,22 +51,56 @@ extern "C" {
|
|
51
51
|
#endif
|
52
52
|
|
53
53
|
/**
|
54
|
-
*
|
55
|
-
*
|
56
|
-
*
|
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
|
57
64
|
*/
|
58
65
|
extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
|
59
66
|
|
60
67
|
/**
|
61
|
-
*
|
62
|
-
*
|
63
|
-
*
|
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
|
64
91
|
*/
|
65
92
|
extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
|
66
93
|
const char *name);
|
67
94
|
|
68
95
|
/**
|
69
|
-
*
|
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
|
70
104
|
*/
|
71
105
|
extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
|
72
106
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
Simple DirectMedia Layer
|
3
|
-
Copyright (C) 1997-
|
3
|
+
Copyright (C) 1997-2022 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
|
@@ -47,44 +47,46 @@ typedef struct SDL_Locale
|
|
47
47
|
} SDL_Locale;
|
48
48
|
|
49
49
|
/**
|
50
|
-
*
|
50
|
+
* Report the user's preferred locale.
|
51
51
|
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
55
|
-
*
|
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
56
|
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
*
|
60
|
-
*
|
61
|
-
*
|
62
|
-
*
|
63
|
-
*
|
64
|
-
*
|
57
|
+
* Returned language strings are in the format xx, where 'xx' is an ISO-639
|
58
|
+
* language specifier (such as "en" for English, "de" for German, etc).
|
59
|
+
* Country strings are in the format YY, where "YY" is an ISO-3166 country
|
60
|
+
* code (such as "US" for the United States, "CA" for Canada, etc). Country
|
61
|
+
* might be NULL if there's no specific guidance on them (so you might get {
|
62
|
+
* "en", "US" } for American English, but { "en", NULL } means "English
|
63
|
+
* language, generically"). Language strings are never NULL, except to
|
64
|
+
* terminate the array.
|
65
65
|
*
|
66
|
-
*
|
67
|
-
*
|
66
|
+
* Please note that not all of these strings are 2 characters; some are three
|
67
|
+
* or more.
|
68
68
|
*
|
69
|
-
*
|
70
|
-
*
|
71
|
-
*
|
72
|
-
*
|
73
|
-
*
|
74
|
-
*
|
69
|
+
* The returned list of locales are in the order of the user's preference. For
|
70
|
+
* example, a German citizen that is fluent in US English and knows enough
|
71
|
+
* Japanese to navigate around Tokyo might have a list like: { "de", "en_US",
|
72
|
+
* "jp", NULL }. Someone from England might prefer British English (where
|
73
|
+
* "color" is spelled "colour", etc), but will settle for anything like it: {
|
74
|
+
* "en_GB", "en", NULL }.
|
75
75
|
*
|
76
|
-
*
|
77
|
-
*
|
76
|
+
* This function returns NULL on error, including when the platform does not
|
77
|
+
* supply this information at all.
|
78
78
|
*
|
79
|
-
*
|
80
|
-
*
|
81
|
-
*
|
82
|
-
*
|
83
|
-
*
|
84
|
-
*
|
79
|
+
* This might be a "slow" call that has to query the operating system. It's
|
80
|
+
* best to ask for this once and save the results. However, this list can
|
81
|
+
* change, usually because the user has changed a system preference outside of
|
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
|
84
|
+
* preferred locales.
|
85
85
|
*
|
86
|
-
*
|
87
|
-
*
|
86
|
+
* \return array of locales, terminated with a locale with a NULL language
|
87
|
+
* field. Will return NULL on error.
|
88
|
+
*
|
89
|
+
* \since This function is available since SDL 2.0.14.
|
88
90
|
*/
|
89
91
|
extern DECLSPEC SDL_Locale * SDLCALL SDL_GetPreferredLocales(void);
|
90
92
|
|