alphatau 0.1.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.
- checksums.yaml +7 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ext/alphatau/native/alphatau_native.cpp +141 -0
- data/ext/alphatau/native/extconf.rb +18 -0
- data/ext/alphatau/native/sdl/Android.mk +110 -0
- data/ext/alphatau/native/sdl/BUGS.txt +16 -0
- data/ext/alphatau/native/sdl/CMakeLists.txt +1877 -0
- data/ext/alphatau/native/sdl/COPYING.txt +20 -0
- data/ext/alphatau/native/sdl/CREDITS.txt +53 -0
- data/ext/alphatau/native/sdl/INSTALL.txt +40 -0
- data/ext/alphatau/native/sdl/Makefile.in +240 -0
- data/ext/alphatau/native/sdl/Makefile.minimal +44 -0
- data/ext/alphatau/native/sdl/Makefile.pandora +60 -0
- data/ext/alphatau/native/sdl/Makefile.psp +95 -0
- data/ext/alphatau/native/sdl/Makefile.wiz +80 -0
- data/ext/alphatau/native/sdl/README-SDL.txt +13 -0
- data/ext/alphatau/native/sdl/README.txt +21 -0
- data/ext/alphatau/native/sdl/SDL2.spec.in +118 -0
- data/ext/alphatau/native/sdl/SDL2Config.cmake +1 -0
- data/ext/alphatau/native/sdl/TODO.txt +10 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/SDL2-WinRT.nuspec +23 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/SDL2-WinRT.targets +38 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/SDL2main-WinRT-NonXAML.nuspec +22 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/SDL2main-WinRT-NonXAML.targets +10 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/UWP_VS2015/SDL-UWP.sln +34 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj +575 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/UWP_VS2015/SDL-UWP.vcxproj.filters +774 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.sln +28 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj +466 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinPhone81_VS2013/SDL-WinPhone81.vcxproj.filters +735 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.sln +34 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj +571 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj.filters +771 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/Assets/Logo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/Assets/SmallLogo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/Assets/SplashScreen.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/Assets/StoreLogo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/Package.appxmanifest +42 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/loopwave_VS2012.vcxproj +170 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/loopwave/loopwave_VS2012_TemporaryKey.pfx +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/Assets/Logo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/Assets/SmallLogo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/Assets/SplashScreen.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/Assets/StoreLogo.png +0 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/Package.appxmanifest +42 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/testthread_VS2012.vcxproj +160 -0
- data/ext/alphatau/native/sdl/VisualC-WinRT/tests/testthread/testthread_VS2012_TemporaryKey.pfx +0 -0
- data/ext/alphatau/native/sdl/VisualC.html +146 -0
- data/ext/alphatau/native/sdl/VisualC/SDL.sln +291 -0
- data/ext/alphatau/native/sdl/VisualC/SDL/SDL.vcxproj +559 -0
- data/ext/alphatau/native/sdl/VisualC/SDL/SDL.vcxproj.filters +479 -0
- data/ext/alphatau/native/sdl/VisualC/SDLmain/SDLmain.vcxproj +162 -0
- data/ext/alphatau/native/sdl/VisualC/SDLtest/SDLtest.vcxproj +177 -0
- data/ext/alphatau/native/sdl/VisualC/clean.sh +4 -0
- data/ext/alphatau/native/sdl/VisualC/tests/checkkeys/checkkeys.vcxproj +218 -0
- data/ext/alphatau/native/sdl/VisualC/tests/controllermap/controllermap.vcxproj +259 -0
- data/ext/alphatau/native/sdl/VisualC/tests/loopwave/loopwave.vcxproj +229 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testatomic/testatomic.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testautomation/testautomation.vcxproj +230 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testdraw2/testdraw2.vcxproj +209 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testfile/testfile.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testgamecontroller/testgamecontroller.vcxproj +259 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testgesture/testgesture.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testgl2/testgl2.vcxproj +213 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testgles2/testgles2.vcxproj +209 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testjoystick/testjoystick.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testoverlay2/testoverlay2.vcxproj +224 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testplatform/testplatform.vcxproj +231 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testpower/testpower.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testrendertarget/testrendertarget.vcxproj +247 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testrumble/testrumble.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testscale/testscale.vcxproj +247 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testshape/testshape.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testsprite2/testsprite2.vcxproj +229 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testvulkan/testvulkan.vcxproj +203 -0
- data/ext/alphatau/native/sdl/VisualC/tests/testyuv/testyuv.vcxproj +233 -0
- data/ext/alphatau/native/sdl/VisualC/visualtest/unittest/testquit/testquit_VS2012.vcxproj +216 -0
- data/ext/alphatau/native/sdl/VisualC/visualtest/visualtest_VS2012.vcxproj +304 -0
- data/ext/alphatau/native/sdl/WhatsNew.txt +401 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/Default.png +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj +1299 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/Icon.png +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/Info.plist +32 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/README +43 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/bitmapfont/kromasky_16x16.bmp +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/bitmapfont/license.txt +258 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/drums/ds_brush_snare.wav +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/drums/ds_china.wav +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/drums/ds_kick_big_amb.wav +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/drums/ds_loose_skin_mute.wav +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/icon.bmp +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/ship.bmp +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/space.bmp +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/data/stroke.bmp +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/iOS Launch Screen.storyboard +40 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/accelerometer.c +226 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/common.c +56 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/common.h +10 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/fireworks.c +474 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/happy.c +180 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/keyboard.c +301 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/mixer.c +344 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/rectangles.c +92 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Demos/src/touch.c +129 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj +2047 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj +422 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/Default-568h@2x.png +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/Default.png +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/Icon.png +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/Info.plist +28 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns +0 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist +10 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj +308 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Template/SDL iOS Application/main.c +100 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Test/Info.plist +26 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Test/README +11 -0
- data/ext/alphatau/native/sdl/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj +3095 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/Info-Framework.plist +28 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/SDL.xcodeproj/project.pbxproj +3384 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/pkg-support/SDL.info +15 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/pkg-support/resources/License.txt +19 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/pkg-support/resources/ReadMe.txt +32 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/pkg-support/resources/SDL_DS_Store +0 -0
- data/ext/alphatau/native/sdl/Xcode/SDL/pkg-support/sdl_logo.pdf +0 -0
- data/ext/alphatau/native/sdl/Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj +4995 -0
- data/ext/alphatau/native/sdl/Xcode/SDLTest/TestDropFile-Info.plist +35 -0
- data/ext/alphatau/native/sdl/Xcode/XcodeDocSet/Doxyfile +1558 -0
- data/ext/alphatau/native/sdl/acinclude/ac_check_define.m4 +14 -0
- data/ext/alphatau/native/sdl/acinclude/alsa.m4 +145 -0
- data/ext/alphatau/native/sdl/acinclude/ax_check_compiler_flags.m4 +76 -0
- data/ext/alphatau/native/sdl/acinclude/ax_gcc_archflag.m4 +215 -0
- data/ext/alphatau/native/sdl/acinclude/ax_gcc_x86_cpuid.m4.htm +79 -0
- data/ext/alphatau/native/sdl/acinclude/esd.m4 +168 -0
- data/ext/alphatau/native/sdl/acinclude/libtool.m4 +7998 -0
- data/ext/alphatau/native/sdl/acinclude/ltoptions.m4 +384 -0
- data/ext/alphatau/native/sdl/acinclude/ltsugar.m4 +123 -0
- data/ext/alphatau/native/sdl/acinclude/ltversion.m4 +23 -0
- data/ext/alphatau/native/sdl/acinclude/lt~obsolete.m4 +98 -0
- data/ext/alphatau/native/sdl/android-project-ant/AndroidManifest.xml +1 -0
- data/ext/alphatau/native/sdl/android-project-ant/ant.properties +17 -0
- data/ext/alphatau/native/sdl/android-project-ant/build.properties +17 -0
- data/ext/alphatau/native/sdl/android-project-ant/build.xml +93 -0
- data/ext/alphatau/native/sdl/android-project-ant/default.properties +11 -0
- data/ext/alphatau/native/sdl/android-project-ant/jni/Android.mk +1 -0
- data/ext/alphatau/native/sdl/android-project-ant/jni/Application.mk +10 -0
- data/ext/alphatau/native/sdl/android-project-ant/jni/src/Android.mk +18 -0
- data/ext/alphatau/native/sdl/android-project-ant/jni/src/Android_static.mk +12 -0
- data/ext/alphatau/native/sdl/android-project-ant/proguard-project.txt +20 -0
- data/ext/alphatau/native/sdl/android-project-ant/project.properties +14 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/drawable-hdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/drawable-mdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/drawable-xhdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/drawable-xxhdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/layout/main.xml +13 -0
- data/ext/alphatau/native/sdl/android-project-ant/res/values/strings.xml +4 -0
- data/ext/alphatau/native/sdl/android-project-ant/src +1 -0
- data/ext/alphatau/native/sdl/android-project/app/build.gradle +69 -0
- data/ext/alphatau/native/sdl/android-project/app/jni/Android.mk +1 -0
- data/ext/alphatau/native/sdl/android-project/app/jni/Application.mk +9 -0
- data/ext/alphatau/native/sdl/android-project/app/jni/src/Android.mk +18 -0
- data/ext/alphatau/native/sdl/android-project/app/proguard-rules.pro +17 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/AndroidManifest.xml +77 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/HIDDevice.java +19 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java +640 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java +624 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java +298 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/SDL.java +37 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +2103 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java +178 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java +812 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/values/colors.xml +6 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/values/strings.xml +3 -0
- data/ext/alphatau/native/sdl/android-project/app/src/main/res/values/styles.xml +8 -0
- data/ext/alphatau/native/sdl/android-project/build.gradle +23 -0
- data/ext/alphatau/native/sdl/android-project/gradle.properties +17 -0
- data/ext/alphatau/native/sdl/android-project/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/ext/alphatau/native/sdl/android-project/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/ext/alphatau/native/sdl/android-project/gradlew +160 -0
- data/ext/alphatau/native/sdl/android-project/gradlew.bat +90 -0
- data/ext/alphatau/native/sdl/android-project/settings.gradle +1 -0
- data/ext/alphatau/native/sdl/autogen.sh +23 -0
- data/ext/alphatau/native/sdl/build-scripts/androidbuild.sh +100 -0
- data/ext/alphatau/native/sdl/build-scripts/androidbuildlibs.sh +74 -0
- data/ext/alphatau/native/sdl/build-scripts/checker-buildbot.sh +103 -0
- data/ext/alphatau/native/sdl/build-scripts/config.guess +1476 -0
- data/ext/alphatau/native/sdl/build-scripts/config.sub +1868 -0
- data/ext/alphatau/native/sdl/build-scripts/config.sub.patch +72 -0
- data/ext/alphatau/native/sdl/build-scripts/emscripten-buildbot.sh +77 -0
- data/ext/alphatau/native/sdl/build-scripts/g++-fat.sh +101 -0
- data/ext/alphatau/native/sdl/build-scripts/gcc-fat.sh +102 -0
- data/ext/alphatau/native/sdl/build-scripts/install-sh +323 -0
- data/ext/alphatau/native/sdl/build-scripts/iosbuild.sh +188 -0
- data/ext/alphatau/native/sdl/build-scripts/ltmain.sh +9658 -0
- data/ext/alphatau/native/sdl/build-scripts/mkinstalldirs +99 -0
- data/ext/alphatau/native/sdl/build-scripts/nacl-buildbot.sh +61 -0
- data/ext/alphatau/native/sdl/build-scripts/naclbuild.sh +105 -0
- data/ext/alphatau/native/sdl/build-scripts/raspberrypi-buildbot.sh +60 -0
- data/ext/alphatau/native/sdl/build-scripts/showrev.sh +5 -0
- data/ext/alphatau/native/sdl/build-scripts/strip_fPIC.sh +21 -0
- data/ext/alphatau/native/sdl/build-scripts/update-copyright.sh +8 -0
- data/ext/alphatau/native/sdl/build-scripts/updaterev.sh +20 -0
- data/ext/alphatau/native/sdl/build-scripts/windows-buildbot-zipper.bat +40 -0
- data/ext/alphatau/native/sdl/build-scripts/winrtbuild.bat +8 -0
- data/ext/alphatau/native/sdl/build-scripts/winrtbuild.ps1 +302 -0
- data/ext/alphatau/native/sdl/cmake/macros.cmake +73 -0
- data/ext/alphatau/native/sdl/cmake/sdlchecks.cmake +1184 -0
- data/ext/alphatau/native/sdl/cmake_uninstall.cmake.in +18 -0
- data/ext/alphatau/native/sdl/configure +27540 -0
- data/ext/alphatau/native/sdl/configure.in +4236 -0
- data/ext/alphatau/native/sdl/debian/changelog +114 -0
- data/ext/alphatau/native/sdl/debian/compat +1 -0
- data/ext/alphatau/native/sdl/debian/control +76 -0
- data/ext/alphatau/native/sdl/debian/copyright +351 -0
- data/ext/alphatau/native/sdl/debian/docs +4 -0
- data/ext/alphatau/native/sdl/debian/libsdl2-dev.install +8 -0
- data/ext/alphatau/native/sdl/debian/libsdl2-dev.manpages +1 -0
- data/ext/alphatau/native/sdl/debian/libsdl2.install +1 -0
- data/ext/alphatau/native/sdl/debian/rules +41 -0
- data/ext/alphatau/native/sdl/debian/sdl2-config.1 +86 -0
- data/ext/alphatau/native/sdl/debian/source/format +1 -0
- data/ext/alphatau/native/sdl/debian/watch +2 -0
- data/ext/alphatau/native/sdl/docs/README-android.md +432 -0
- data/ext/alphatau/native/sdl/docs/README-cmake.md +32 -0
- data/ext/alphatau/native/sdl/docs/README-directfb.md +107 -0
- data/ext/alphatau/native/sdl/docs/README-dynapi.md +130 -0
- data/ext/alphatau/native/sdl/docs/README-emscripten.md +35 -0
- data/ext/alphatau/native/sdl/docs/README-gesture.md +71 -0
- data/ext/alphatau/native/sdl/docs/README-hg.md +22 -0
- data/ext/alphatau/native/sdl/docs/README-ios.md +284 -0
- data/ext/alphatau/native/sdl/docs/README-linux.md +90 -0
- data/ext/alphatau/native/sdl/docs/README-macosx.md +240 -0
- data/ext/alphatau/native/sdl/docs/README-nacl.md +103 -0
- data/ext/alphatau/native/sdl/docs/README-pandora.md +17 -0
- data/ext/alphatau/native/sdl/docs/README-platforms.md +8 -0
- data/ext/alphatau/native/sdl/docs/README-porting.md +68 -0
- data/ext/alphatau/native/sdl/docs/README-psp.md +19 -0
- data/ext/alphatau/native/sdl/docs/README-raspberrypi.md +188 -0
- data/ext/alphatau/native/sdl/docs/README-touch.md +86 -0
- data/ext/alphatau/native/sdl/docs/README-wince.md +10 -0
- data/ext/alphatau/native/sdl/docs/README-windows.md +45 -0
- data/ext/alphatau/native/sdl/docs/README-winrt.md +544 -0
- data/ext/alphatau/native/sdl/docs/README.md +63 -0
- data/ext/alphatau/native/sdl/docs/doxyfile +1560 -0
- data/ext/alphatau/native/sdl/include/SDL.h +135 -0
- data/ext/alphatau/native/sdl/include/SDL_assert.h +291 -0
- data/ext/alphatau/native/sdl/include/SDL_atomic.h +277 -0
- data/ext/alphatau/native/sdl/include/SDL_audio.h +825 -0
- data/ext/alphatau/native/sdl/include/SDL_bits.h +112 -0
- data/ext/alphatau/native/sdl/include/SDL_blendmode.h +120 -0
- data/ext/alphatau/native/sdl/include/SDL_clipboard.h +71 -0
- data/ext/alphatau/native/sdl/include/SDL_config.h +53 -0
- data/ext/alphatau/native/sdl/include/SDL_config.h.cmake +471 -0
- data/ext/alphatau/native/sdl/include/SDL_config.h.in +417 -0
- data/ext/alphatau/native/sdl/include/SDL_config_android.h +177 -0
- data/ext/alphatau/native/sdl/include/SDL_config_iphoneos.h +201 -0
- data/ext/alphatau/native/sdl/include/SDL_config_macosx.h +240 -0
- data/ext/alphatau/native/sdl/include/SDL_config_minimal.h +85 -0
- data/ext/alphatau/native/sdl/include/SDL_config_pandora.h +133 -0
- data/ext/alphatau/native/sdl/include/SDL_config_psp.h +164 -0
- data/ext/alphatau/native/sdl/include/SDL_config_windows.h +254 -0
- data/ext/alphatau/native/sdl/include/SDL_config_winrt.h +235 -0
- data/ext/alphatau/native/sdl/include/SDL_config_wiz.h +146 -0
- data/ext/alphatau/native/sdl/include/SDL_copying.h +20 -0
- data/ext/alphatau/native/sdl/include/SDL_cpuinfo.h +188 -0
- data/ext/alphatau/native/sdl/include/SDL_egl.h +1673 -0
- data/ext/alphatau/native/sdl/include/SDL_endian.h +260 -0
- data/ext/alphatau/native/sdl/include/SDL_error.h +76 -0
- data/ext/alphatau/native/sdl/include/SDL_events.h +788 -0
- data/ext/alphatau/native/sdl/include/SDL_filesystem.h +136 -0
- data/ext/alphatau/native/sdl/include/SDL_gamecontroller.h +383 -0
- data/ext/alphatau/native/sdl/include/SDL_gesture.h +87 -0
- data/ext/alphatau/native/sdl/include/SDL_haptic.h +1227 -0
- data/ext/alphatau/native/sdl/include/SDL_hints.h +1106 -0
- data/ext/alphatau/native/sdl/include/SDL_joystick.h +395 -0
- data/ext/alphatau/native/sdl/include/SDL_keyboard.h +217 -0
- data/ext/alphatau/native/sdl/include/SDL_keycode.h +349 -0
- data/ext/alphatau/native/sdl/include/SDL_loadso.h +81 -0
- data/ext/alphatau/native/sdl/include/SDL_log.h +211 -0
- data/ext/alphatau/native/sdl/include/SDL_main.h +168 -0
- data/ext/alphatau/native/sdl/include/SDL_messagebox.h +144 -0
- data/ext/alphatau/native/sdl/include/SDL_mouse.h +302 -0
- data/ext/alphatau/native/sdl/include/SDL_mutex.h +251 -0
- data/ext/alphatau/native/sdl/include/SDL_name.h +33 -0
- data/ext/alphatau/native/sdl/include/SDL_opengl.h +2183 -0
- data/ext/alphatau/native/sdl/include/SDL_opengl_glext.h +11177 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles.h +39 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles2.h +52 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles2_gl2.h +621 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles2_gl2ext.h +2050 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles2_gl2platform.h +30 -0
- data/ext/alphatau/native/sdl/include/SDL_opengles2_khrplatform.h +282 -0
- data/ext/alphatau/native/sdl/include/SDL_pixels.h +470 -0
- data/ext/alphatau/native/sdl/include/SDL_platform.h +198 -0
- data/ext/alphatau/native/sdl/include/SDL_power.h +75 -0
- data/ext/alphatau/native/sdl/include/SDL_quit.h +58 -0
- data/ext/alphatau/native/sdl/include/SDL_rect.h +148 -0
- data/ext/alphatau/native/sdl/include/SDL_render.h +931 -0
- data/ext/alphatau/native/sdl/include/SDL_revision.h +2 -0
- data/ext/alphatau/native/sdl/include/SDL_rwops.h +254 -0
- data/ext/alphatau/native/sdl/include/SDL_scancode.h +413 -0
- data/ext/alphatau/native/sdl/include/SDL_sensor.h +251 -0
- data/ext/alphatau/native/sdl/include/SDL_shape.h +144 -0
- data/ext/alphatau/native/sdl/include/SDL_stdinc.h +607 -0
- data/ext/alphatau/native/sdl/include/SDL_surface.h +546 -0
- data/ext/alphatau/native/sdl/include/SDL_system.h +279 -0
- data/ext/alphatau/native/sdl/include/SDL_syswm.h +324 -0
- data/ext/alphatau/native/sdl/include/SDL_test.h +69 -0
- data/ext/alphatau/native/sdl/include/SDL_test_assert.h +105 -0
- data/ext/alphatau/native/sdl/include/SDL_test_common.h +188 -0
- data/ext/alphatau/native/sdl/include/SDL_test_compare.h +69 -0
- data/ext/alphatau/native/sdl/include/SDL_test_crc32.h +124 -0
- data/ext/alphatau/native/sdl/include/SDL_test_font.h +81 -0
- data/ext/alphatau/native/sdl/include/SDL_test_fuzzer.h +384 -0
- data/ext/alphatau/native/sdl/include/SDL_test_harness.h +134 -0
- data/ext/alphatau/native/sdl/include/SDL_test_images.h +78 -0
- data/ext/alphatau/native/sdl/include/SDL_test_log.h +67 -0
- data/ext/alphatau/native/sdl/include/SDL_test_md5.h +129 -0
- data/ext/alphatau/native/sdl/include/SDL_test_memory.h +63 -0
- data/ext/alphatau/native/sdl/include/SDL_test_random.h +115 -0
- data/ext/alphatau/native/sdl/include/SDL_thread.h +309 -0
- data/ext/alphatau/native/sdl/include/SDL_timer.h +115 -0
- data/ext/alphatau/native/sdl/include/SDL_touch.h +86 -0
- data/ext/alphatau/native/sdl/include/SDL_types.h +29 -0
- data/ext/alphatau/native/sdl/include/SDL_version.h +162 -0
- data/ext/alphatau/native/sdl/include/SDL_video.h +1276 -0
- data/ext/alphatau/native/sdl/include/SDL_vulkan.h +278 -0
- data/ext/alphatau/native/sdl/include/begin_code.h +167 -0
- data/ext/alphatau/native/sdl/include/close_code.h +37 -0
- data/ext/alphatau/native/sdl/sdl2-config.cmake.in +11 -0
- data/ext/alphatau/native/sdl/sdl2-config.in +60 -0
- data/ext/alphatau/native/sdl/sdl2.m4 +234 -0
- data/ext/alphatau/native/sdl/sdl2.pc.in +15 -0
- data/ext/alphatau/native/sdl/src/SDL.c +514 -0
- data/ext/alphatau/native/sdl/src/SDL_assert.c +451 -0
- data/ext/alphatau/native/sdl/src/SDL_assert_c.h +24 -0
- data/ext/alphatau/native/sdl/src/SDL_dataqueue.c +339 -0
- data/ext/alphatau/native/sdl/src/SDL_dataqueue.h +55 -0
- data/ext/alphatau/native/sdl/src/SDL_error.c +319 -0
- data/ext/alphatau/native/sdl/src/SDL_error_c.h +65 -0
- data/ext/alphatau/native/sdl/src/SDL_hints.c +236 -0
- data/ext/alphatau/native/sdl/src/SDL_internal.h +52 -0
- data/ext/alphatau/native/sdl/src/SDL_log.c +450 -0
- data/ext/alphatau/native/sdl/src/atomic/SDL_atomic.c +303 -0
- data/ext/alphatau/native/sdl/src/atomic/SDL_spinlock.c +176 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audio.c +1647 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audio_c.h +79 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audiocvt.c +1673 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audiodev.c +124 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audiodev_c.h +38 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_audiotypecvt.c +1430 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_mixer.c +369 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_sysaudio.h +211 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_wave.c +694 -0
- data/ext/alphatau/native/sdl/src/audio/SDL_wave.h +77 -0
- data/ext/alphatau/native/sdl/src/audio/alsa/SDL_alsa_audio.c +990 -0
- data/ext/alphatau/native/sdl/src/audio/alsa/SDL_alsa_audio.h +48 -0
- data/ext/alphatau/native/sdl/src/audio/android/SDL_androidaudio.c +226 -0
- data/ext/alphatau/native/sdl/src/audio/android/SDL_androidaudio.h +42 -0
- data/ext/alphatau/native/sdl/src/audio/arts/SDL_artsaudio.c +365 -0
- data/ext/alphatau/native/sdl/src/audio/arts/SDL_artsaudio.h +53 -0
- data/ext/alphatau/native/sdl/src/audio/coreaudio/SDL_coreaudio.h +66 -0
- data/ext/alphatau/native/sdl/src/audio/coreaudio/SDL_coreaudio.m +861 -0
- data/ext/alphatau/native/sdl/src/audio/directsound/SDL_directsound.c +604 -0
- data/ext/alphatau/native/sdl/src/audio/directsound/SDL_directsound.h +47 -0
- data/ext/alphatau/native/sdl/src/audio/disk/SDL_diskaudio.c +207 -0
- data/ext/alphatau/native/sdl/src/audio/disk/SDL_diskaudio.h +41 -0
- data/ext/alphatau/native/sdl/src/audio/dsp/SDL_dspaudio.c +320 -0
- data/ext/alphatau/native/sdl/src/audio/dsp/SDL_dspaudio.h +43 -0
- data/ext/alphatau/native/sdl/src/audio/dummy/SDL_dummyaudio.c +65 -0
- data/ext/alphatau/native/sdl/src/audio/dummy/SDL_dummyaudio.h +41 -0
- data/ext/alphatau/native/sdl/src/audio/emscripten/SDL_emscriptenaudio.c +379 -0
- data/ext/alphatau/native/sdl/src/audio/emscripten/SDL_emscriptenaudio.h +38 -0
- data/ext/alphatau/native/sdl/src/audio/esd/SDL_esdaudio.c +335 -0
- data/ext/alphatau/native/sdl/src/audio/esd/SDL_esdaudio.h +51 -0
- data/ext/alphatau/native/sdl/src/audio/fusionsound/SDL_fsaudio.c +328 -0
- data/ext/alphatau/native/sdl/src/audio/fusionsound/SDL_fsaudio.h +50 -0
- data/ext/alphatau/native/sdl/src/audio/haiku/SDL_haikuaudio.cc +248 -0
- data/ext/alphatau/native/sdl/src/audio/haiku/SDL_haikuaudio.h +38 -0
- data/ext/alphatau/native/sdl/src/audio/jack/SDL_jackaudio.c +446 -0
- data/ext/alphatau/native/sdl/src/audio/jack/SDL_jackaudio.h +41 -0
- data/ext/alphatau/native/sdl/src/audio/nacl/SDL_naclaudio.c +165 -0
- data/ext/alphatau/native/sdl/src/audio/nacl/SDL_naclaudio.h +43 -0
- data/ext/alphatau/native/sdl/src/audio/nas/SDL_nasaudio.c +463 -0
- data/ext/alphatau/native/sdl/src/audio/nas/SDL_nasaudio.h +56 -0
- data/ext/alphatau/native/sdl/src/audio/netbsd/SDL_netbsdaudio.c +412 -0
- data/ext/alphatau/native/sdl/src/audio/netbsd/SDL_netbsdaudio.h +48 -0
- data/ext/alphatau/native/sdl/src/audio/paudio/SDL_paudio.c +516 -0
- data/ext/alphatau/native/sdl/src/audio/paudio/SDL_paudio.h +48 -0
- data/ext/alphatau/native/sdl/src/audio/psp/SDL_pspaudio.c +181 -0
- data/ext/alphatau/native/sdl/src/audio/psp/SDL_pspaudio.h +45 -0
- data/ext/alphatau/native/sdl/src/audio/pulseaudio/SDL_pulseaudio.c +782 -0
- data/ext/alphatau/native/sdl/src/audio/pulseaudio/SDL_pulseaudio.h +52 -0
- data/ext/alphatau/native/sdl/src/audio/qsa/SDL_qsa_audio.c +666 -0
- data/ext/alphatau/native/sdl/src/audio/qsa/SDL_qsa_audio.h +57 -0
- data/ext/alphatau/native/sdl/src/audio/sndio/SDL_sndioaudio.c +382 -0
- data/ext/alphatau/native/sdl/src/audio/sndio/SDL_sndioaudio.h +49 -0
- data/ext/alphatau/native/sdl/src/audio/sun/SDL_sunaudio.c +419 -0
- data/ext/alphatau/native/sdl/src/audio/sun/SDL_sunaudio.h +47 -0
- data/ext/alphatau/native/sdl/src/audio/wasapi/SDL_wasapi.c +779 -0
- data/ext/alphatau/native/sdl/src/audio/wasapi/SDL_wasapi.h +85 -0
- data/ext/alphatau/native/sdl/src/audio/wasapi/SDL_wasapi_win32.c +417 -0
- data/ext/alphatau/native/sdl/src/audio/wasapi/SDL_wasapi_winrt.cpp +276 -0
- data/ext/alphatau/native/sdl/src/audio/winmm/SDL_winmm.c +457 -0
- data/ext/alphatau/native/sdl/src/audio/winmm/SDL_winmm.h +45 -0
- data/ext/alphatau/native/sdl/src/core/android/SDL_android.c +2285 -0
- data/ext/alphatau/native/sdl/src/core/android/SDL_android.h +122 -0
- data/ext/alphatau/native/sdl/src/core/android/keyinfotable.h +175 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_dbus.c +347 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_dbus.h +97 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev.c +698 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev.h +39 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev_kbd.c +840 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev_kbd.h +29 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev_kbd_default_accents.h +284 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_evdev_kbd_default_keymap.h +4763 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_fcitx.c +373 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_fcitx.h +40 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_ibus.c +584 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_ibus.h +58 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_ime.c +152 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_ime.h +40 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_udev.c +553 -0
- data/ext/alphatau/native/sdl/src/core/linux/SDL_udev.h +121 -0
- data/ext/alphatau/native/sdl/src/core/unix/SDL_poll.c +87 -0
- data/ext/alphatau/native/sdl/src/core/unix/SDL_poll.h +34 -0
- data/ext/alphatau/native/sdl/src/core/windows/SDL_directx.h +111 -0
- data/ext/alphatau/native/sdl/src/core/windows/SDL_windows.c +233 -0
- data/ext/alphatau/native/sdl/src/core/windows/SDL_windows.h +75 -0
- data/ext/alphatau/native/sdl/src/core/windows/SDL_xinput.c +139 -0
- data/ext/alphatau/native/sdl/src/core/windows/SDL_xinput.h +177 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_common.cpp +66 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_common.h +31 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_direct3d.cpp +855 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_direct3d.h +92 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_xaml.cpp +160 -0
- data/ext/alphatau/native/sdl/src/core/winrt/SDL_winrtapp_xaml.h +33 -0
- data/ext/alphatau/native/sdl/src/cpuinfo/SDL_cpuinfo.c +855 -0
- data/ext/alphatau/native/sdl/src/cpuinfo/SDL_simd.h +88 -0
- data/ext/alphatau/native/sdl/src/dynapi/SDL_dynapi.c +331 -0
- data/ext/alphatau/native/sdl/src/dynapi/SDL_dynapi.h +67 -0
- data/ext/alphatau/native/sdl/src/dynapi/SDL_dynapi_overrides.h +698 -0
- data/ext/alphatau/native/sdl/src/dynapi/SDL_dynapi_procs.h +740 -0
- data/ext/alphatau/native/sdl/src/dynapi/gendynapi.pl +141 -0
- data/ext/alphatau/native/sdl/src/events/SDL_clipboardevents.c +46 -0
- data/ext/alphatau/native/sdl/src/events/SDL_clipboardevents_c.h +30 -0
- data/ext/alphatau/native/sdl/src/events/SDL_displayevents.c +60 -0
- data/ext/alphatau/native/sdl/src/events/SDL_displayevents_c.h +30 -0
- data/ext/alphatau/native/sdl/src/events/SDL_dropevents.c +98 -0
- data/ext/alphatau/native/sdl/src/events/SDL_dropevents_c.h +32 -0
- data/ext/alphatau/native/sdl/src/events/SDL_events.c +976 -0
- data/ext/alphatau/native/sdl/src/events/SDL_events_c.h +52 -0
- data/ext/alphatau/native/sdl/src/events/SDL_gesture.c +700 -0
- data/ext/alphatau/native/sdl/src/events/SDL_gesture_c.h +35 -0
- data/ext/alphatau/native/sdl/src/events/SDL_keyboard.c +1033 -0
- data/ext/alphatau/native/sdl/src/events/SDL_keyboard_c.h +70 -0
- data/ext/alphatau/native/sdl/src/events/SDL_mouse.c +1031 -0
- data/ext/alphatau/native/sdl/src/events/SDL_mouse_c.h +141 -0
- data/ext/alphatau/native/sdl/src/events/SDL_quit.c +152 -0
- data/ext/alphatau/native/sdl/src/events/SDL_sysevents.h +36 -0
- data/ext/alphatau/native/sdl/src/events/SDL_touch.c +375 -0
- data/ext/alphatau/native/sdl/src/events/SDL_touch_c.h +61 -0
- data/ext/alphatau/native/sdl/src/events/SDL_windowevents.c +227 -0
- data/ext/alphatau/native/sdl/src/events/SDL_windowevents_c.h +31 -0
- data/ext/alphatau/native/sdl/src/events/blank_cursor.h +33 -0
- data/ext/alphatau/native/sdl/src/events/default_cursor.h +114 -0
- data/ext/alphatau/native/sdl/src/events/scancodes_darwin.h +159 -0
- data/ext/alphatau/native/sdl/src/events/scancodes_linux.h +263 -0
- data/ext/alphatau/native/sdl/src/events/scancodes_windows.h +55 -0
- data/ext/alphatau/native/sdl/src/events/scancodes_xfree86.h +506 -0
- data/ext/alphatau/native/sdl/src/file/SDL_rwops.c +867 -0
- data/ext/alphatau/native/sdl/src/file/cocoa/SDL_rwopsbundlesupport.h +30 -0
- data/ext/alphatau/native/sdl/src/file/cocoa/SDL_rwopsbundlesupport.m +62 -0
- data/ext/alphatau/native/sdl/src/filesystem/android/SDL_sysfilesystem.c +62 -0
- data/ext/alphatau/native/sdl/src/filesystem/cocoa/SDL_sysfilesystem.m +117 -0
- data/ext/alphatau/native/sdl/src/filesystem/dummy/SDL_sysfilesystem.c +47 -0
- data/ext/alphatau/native/sdl/src/filesystem/emscripten/SDL_sysfilesystem.c +81 -0
- data/ext/alphatau/native/sdl/src/filesystem/haiku/SDL_sysfilesystem.cc +110 -0
- data/ext/alphatau/native/sdl/src/filesystem/nacl/SDL_sysfilesystem.c +43 -0
- data/ext/alphatau/native/sdl/src/filesystem/unix/SDL_sysfilesystem.c +250 -0
- data/ext/alphatau/native/sdl/src/filesystem/windows/SDL_sysfilesystem.c +192 -0
- data/ext/alphatau/native/sdl/src/filesystem/winrt/SDL_sysfilesystem.cpp +233 -0
- data/ext/alphatau/native/sdl/src/haptic/SDL_haptic.c +850 -0
- data/ext/alphatau/native/sdl/src/haptic/SDL_haptic_c.h +25 -0
- data/ext/alphatau/native/sdl/src/haptic/SDL_syshaptic.h +208 -0
- data/ext/alphatau/native/sdl/src/haptic/android/SDL_syshaptic.c +358 -0
- data/ext/alphatau/native/sdl/src/haptic/android/SDL_syshaptic_c.h +12 -0
- data/ext/alphatau/native/sdl/src/haptic/darwin/SDL_syshaptic.c +1417 -0
- data/ext/alphatau/native/sdl/src/haptic/darwin/SDL_syshaptic_c.h +26 -0
- data/ext/alphatau/native/sdl/src/haptic/dummy/SDL_syshaptic.c +186 -0
- data/ext/alphatau/native/sdl/src/haptic/linux/SDL_syshaptic.c +1165 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_dinputhaptic.c +1305 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_dinputhaptic_c.h +47 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_windowshaptic.c +456 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_windowshaptic_c.h +88 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_xinputhaptic.c +487 -0
- data/ext/alphatau/native/sdl/src/haptic/windows/SDL_xinputhaptic_c.h +47 -0
- data/ext/alphatau/native/sdl/src/hidapi/AUTHORS.txt +16 -0
- data/ext/alphatau/native/sdl/src/hidapi/HACKING.txt +15 -0
- data/ext/alphatau/native/sdl/src/hidapi/LICENSE-bsd.txt +26 -0
- data/ext/alphatau/native/sdl/src/hidapi/LICENSE-gpl3.txt +674 -0
- data/ext/alphatau/native/sdl/src/hidapi/LICENSE-orig.txt +9 -0
- data/ext/alphatau/native/sdl/src/hidapi/LICENSE.txt +13 -0
- data/ext/alphatau/native/sdl/src/hidapi/Makefile.am +85 -0
- data/ext/alphatau/native/sdl/src/hidapi/README.txt +339 -0
- data/ext/alphatau/native/sdl/src/hidapi/android/hid.cpp +1079 -0
- data/ext/alphatau/native/sdl/src/hidapi/android/jni/Android.mk +16 -0
- data/ext/alphatau/native/sdl/src/hidapi/android/jni/Application.mk +2 -0
- data/ext/alphatau/native/sdl/src/hidapi/android/project.properties +14 -0
- data/ext/alphatau/native/sdl/src/hidapi/bootstrap +2 -0
- data/ext/alphatau/native/sdl/src/hidapi/configure.ac +236 -0
- data/ext/alphatau/native/sdl/src/hidapi/doxygen/Doxyfile +1630 -0
- data/ext/alphatau/native/sdl/src/hidapi/hidapi/hidapi.h +398 -0
- data/ext/alphatau/native/sdl/src/hidapi/hidtest/Makefile.am +20 -0
- data/ext/alphatau/native/sdl/src/hidapi/hidtest/hidtest.cpp +194 -0
- data/ext/alphatau/native/sdl/src/hidapi/ios/Makefile-manual +32 -0
- data/ext/alphatau/native/sdl/src/hidapi/ios/Makefile.am +9 -0
- data/ext/alphatau/native/sdl/src/hidapi/ios/hid.m +909 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/Makefile-manual +18 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/Makefile.am +27 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/Makefile.freebsd +46 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/Makefile.linux +49 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/hid.c +1615 -0
- data/ext/alphatau/native/sdl/src/hidapi/libusb/hidusb.cpp +3 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/Makefile-manual +49 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/Makefile.am +10 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/README.txt +59 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/hid.c +893 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/hid.cpp +333 -0
- data/ext/alphatau/native/sdl/src/hidapi/linux/hidraw.cpp +3 -0
- data/ext/alphatau/native/sdl/src/hidapi/m4/ax_pthread.m4 +309 -0
- data/ext/alphatau/native/sdl/src/hidapi/m4/pkg.m4 +157 -0
- data/ext/alphatau/native/sdl/src/hidapi/mac/Makefile-manual +32 -0
- data/ext/alphatau/native/sdl/src/hidapi/mac/Makefile.am +9 -0
- data/ext/alphatau/native/sdl/src/hidapi/mac/hid.c +1186 -0
- data/ext/alphatau/native/sdl/src/hidapi/pc/hidapi-hidraw.pc.in +10 -0
- data/ext/alphatau/native/sdl/src/hidapi/pc/hidapi-libusb.pc.in +10 -0
- data/ext/alphatau/native/sdl/src/hidapi/pc/hidapi.pc.in +10 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile-manual +26 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile.am +43 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile.freebsd +33 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile.linux +32 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile.mac +46 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/Makefile.mingw +32 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/TestGUI.app.in/Contents/Info.plist +28 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/TestGUI.app.in/Contents/PkgInfo +1 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/English.lproj/InfoPlist.strings +0 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/Signal11.icns +0 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/copy_to_bundle.sh +97 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/mac_support.cpp +134 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/mac_support.h +17 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/mac_support_cocoa.m +94 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/start.sh +2 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/test.cpp +532 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/testgui.sln +20 -0
- data/ext/alphatau/native/sdl/src/hidapi/testgui/testgui.vcproj +217 -0
- data/ext/alphatau/native/sdl/src/hidapi/udev/99-hid.rules +33 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/Makefile-manual +14 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/Makefile.am +16 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/Makefile.mingw +35 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/ddk_build/hidapi.def +17 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/ddk_build/makefile +49 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/ddk_build/sources +23 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/hid.c +983 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/hidapi.sln +29 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/hidapi.vcproj +201 -0
- data/ext/alphatau/native/sdl/src/hidapi/windows/hidtest.vcproj +196 -0
- data/ext/alphatau/native/sdl/src/joystick/SDL_gamecontroller.c +2066 -0
- data/ext/alphatau/native/sdl/src/joystick/SDL_gamecontrollerdb.h +583 -0
- data/ext/alphatau/native/sdl/src/joystick/SDL_joystick.c +1547 -0
- data/ext/alphatau/native/sdl/src/joystick/SDL_joystick_c.h +94 -0
- data/ext/alphatau/native/sdl/src/joystick/SDL_sysjoystick.h +153 -0
- data/ext/alphatau/native/sdl/src/joystick/android/SDL_sysjoystick.c +703 -0
- data/ext/alphatau/native/sdl/src/joystick/android/SDL_sysjoystick_c.h +59 -0
- data/ext/alphatau/native/sdl/src/joystick/bsd/SDL_sysjoystick.c +701 -0
- data/ext/alphatau/native/sdl/src/joystick/controller_type.h +457 -0
- data/ext/alphatau/native/sdl/src/joystick/darwin/SDL_sysjoystick.c +1012 -0
- data/ext/alphatau/native/sdl/src/joystick/darwin/SDL_sysjoystick_c.h +79 -0
- data/ext/alphatau/native/sdl/src/joystick/dummy/SDL_sysjoystick.c +113 -0
- data/ext/alphatau/native/sdl/src/joystick/emscripten/SDL_sysjoystick.c +406 -0
- data/ext/alphatau/native/sdl/src/joystick/emscripten/SDL_sysjoystick_c.h +52 -0
- data/ext/alphatau/native/sdl/src/joystick/haiku/SDL_haikujoystick.cc +272 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapi_ps4.c +545 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapi_switch.c +905 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapi_xbox360.c +461 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapi_xboxone.c +318 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapijoystick.c +1021 -0
- data/ext/alphatau/native/sdl/src/joystick/hidapi/SDL_hidapijoystick_c.h +72 -0
- data/ext/alphatau/native/sdl/src/joystick/iphoneos/SDL_sysjoystick.m +727 -0
- data/ext/alphatau/native/sdl/src/joystick/iphoneos/SDL_sysjoystick_c.h +57 -0
- data/ext/alphatau/native/sdl/src/joystick/linux/SDL_sysjoystick.c +1116 -0
- data/ext/alphatau/native/sdl/src/joystick/linux/SDL_sysjoystick_c.h +64 -0
- data/ext/alphatau/native/sdl/src/joystick/psp/SDL_sysjoystick.c +264 -0
- data/ext/alphatau/native/sdl/src/joystick/sort_controllers.py +78 -0
- data/ext/alphatau/native/sdl/src/joystick/steam/SDL_steamcontroller.c +52 -0
- data/ext/alphatau/native/sdl/src/joystick/steam/SDL_steamcontroller.h +33 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_dinputjoystick.c +1155 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_dinputjoystick_c.h +31 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_mmjoystick.c +452 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_windowsjoystick.c +558 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_windowsjoystick_c.h +95 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_xinputjoystick.c +558 -0
- data/ext/alphatau/native/sdl/src/joystick/windows/SDL_xinputjoystick_c.h +34 -0
- data/ext/alphatau/native/sdl/src/libm/e_atan2.c +134 -0
- data/ext/alphatau/native/sdl/src/libm/e_exp.c +187 -0
- data/ext/alphatau/native/sdl/src/libm/e_fmod.c +144 -0
- data/ext/alphatau/native/sdl/src/libm/e_log.c +152 -0
- data/ext/alphatau/native/sdl/src/libm/e_log10.c +106 -0
- data/ext/alphatau/native/sdl/src/libm/e_pow.c +343 -0
- data/ext/alphatau/native/sdl/src/libm/e_rem_pio2.c +161 -0
- data/ext/alphatau/native/sdl/src/libm/e_sqrt.c +457 -0
- data/ext/alphatau/native/sdl/src/libm/k_cos.c +82 -0
- data/ext/alphatau/native/sdl/src/libm/k_rem_pio2.c +317 -0
- data/ext/alphatau/native/sdl/src/libm/k_sin.c +65 -0
- data/ext/alphatau/native/sdl/src/libm/k_tan.c +118 -0
- data/ext/alphatau/native/sdl/src/libm/math_libm.h +41 -0
- data/ext/alphatau/native/sdl/src/libm/math_private.h +227 -0
- data/ext/alphatau/native/sdl/src/libm/s_atan.c +114 -0
- data/ext/alphatau/native/sdl/src/libm/s_copysign.c +29 -0
- data/ext/alphatau/native/sdl/src/libm/s_cos.c +73 -0
- data/ext/alphatau/native/sdl/src/libm/s_fabs.c +29 -0
- data/ext/alphatau/native/sdl/src/libm/s_floor.c +71 -0
- data/ext/alphatau/native/sdl/src/libm/s_scalbn.c +69 -0
- data/ext/alphatau/native/sdl/src/libm/s_sin.c +73 -0
- data/ext/alphatau/native/sdl/src/libm/s_tan.c +67 -0
- data/ext/alphatau/native/sdl/src/loadso/dlopen/SDL_sysloadso.c +88 -0
- data/ext/alphatau/native/sdl/src/loadso/dummy/SDL_sysloadso.c +54 -0
- data/ext/alphatau/native/sdl/src/loadso/windows/SDL_sysloadso.c +80 -0
- data/ext/alphatau/native/sdl/src/main/android/SDL_android_main.c +7 -0
- data/ext/alphatau/native/sdl/src/main/dummy/SDL_dummy_main.c +28 -0
- data/ext/alphatau/native/sdl/src/main/haiku/SDL_BApp.h +399 -0
- data/ext/alphatau/native/sdl/src/main/haiku/SDL_BeApp.cc +157 -0
- data/ext/alphatau/native/sdl/src/main/haiku/SDL_BeApp.h +38 -0
- data/ext/alphatau/native/sdl/src/main/nacl/SDL_nacl_main.c +93 -0
- data/ext/alphatau/native/sdl/src/main/psp/SDL_psp_main.c +70 -0
- data/ext/alphatau/native/sdl/src/main/windows/SDL_windows_main.c +207 -0
- data/ext/alphatau/native/sdl/src/main/windows/version.rc +38 -0
- data/ext/alphatau/native/sdl/src/main/winrt/SDL2-WinRTResource_BlankCursor.cur +0 -0
- data/ext/alphatau/native/sdl/src/main/winrt/SDL2-WinRTResources.rc +3 -0
- data/ext/alphatau/native/sdl/src/main/winrt/SDL_winrt_main_NonXAML.cpp +54 -0
- data/ext/alphatau/native/sdl/src/power/SDL_power.c +116 -0
- data/ext/alphatau/native/sdl/src/power/SDL_syspower.h +47 -0
- data/ext/alphatau/native/sdl/src/power/android/SDL_syspower.c +64 -0
- data/ext/alphatau/native/sdl/src/power/emscripten/SDL_syspower.c +62 -0
- data/ext/alphatau/native/sdl/src/power/haiku/SDL_syspower.c +128 -0
- data/ext/alphatau/native/sdl/src/power/linux/SDL_syspower.c +642 -0
- data/ext/alphatau/native/sdl/src/power/macosx/SDL_syspower.c +192 -0
- data/ext/alphatau/native/sdl/src/power/psp/SDL_syspower.c +68 -0
- data/ext/alphatau/native/sdl/src/power/uikit/SDL_syspower.h +32 -0
- data/ext/alphatau/native/sdl/src/power/uikit/SDL_syspower.m +113 -0
- data/ext/alphatau/native/sdl/src/power/windows/SDL_syspower.c +76 -0
- data/ext/alphatau/native/sdl/src/power/winrt/SDL_syspower.cpp +44 -0
- data/ext/alphatau/native/sdl/src/render/SDL_d3dmath.c +136 -0
- data/ext/alphatau/native/sdl/src/render/SDL_d3dmath.h +72 -0
- data/ext/alphatau/native/sdl/src/render/SDL_render.c +2292 -0
- data/ext/alphatau/native/sdl/src/render/SDL_sysrender.h +214 -0
- data/ext/alphatau/native/sdl/src/render/SDL_yuv_sw.c +414 -0
- data/ext/alphatau/native/sdl/src/render/SDL_yuv_sw_c.h +67 -0
- data/ext/alphatau/native/sdl/src/render/direct3d/SDL_render_d3d.c +1813 -0
- data/ext/alphatau/native/sdl/src/render/direct3d/SDL_shaders_d3d.c +274 -0
- data/ext/alphatau/native/sdl/src/render/direct3d/SDL_shaders_d3d.h +34 -0
- data/ext/alphatau/native/sdl/src/render/direct3d11/SDL_render_d3d11.c +2559 -0
- data/ext/alphatau/native/sdl/src/render/direct3d11/SDL_render_winrt.cpp +116 -0
- data/ext/alphatau/native/sdl/src/render/direct3d11/SDL_render_winrt.h +40 -0
- data/ext/alphatau/native/sdl/src/render/direct3d11/SDL_shaders_d3d11.c +1957 -0
- data/ext/alphatau/native/sdl/src/render/direct3d11/SDL_shaders_d3d11.h +43 -0
- data/ext/alphatau/native/sdl/src/render/metal/SDL_render_metal.m +1428 -0
- data/ext/alphatau/native/sdl/src/render/metal/SDL_shaders_metal.metal +109 -0
- data/ext/alphatau/native/sdl/src/render/metal/SDL_shaders_metal_ios.h +1899 -0
- data/ext/alphatau/native/sdl/src/render/metal/SDL_shaders_metal_osx.h +1903 -0
- data/ext/alphatau/native/sdl/src/render/metal/build-metal-shaders.sh +18 -0
- data/ext/alphatau/native/sdl/src/render/opengl/SDL_glfuncs.h +478 -0
- data/ext/alphatau/native/sdl/src/render/opengl/SDL_render_gl.c +1678 -0
- data/ext/alphatau/native/sdl/src/render/opengl/SDL_shaders_gl.c +524 -0
- data/ext/alphatau/native/sdl/src/render/opengl/SDL_shaders_gl.h +47 -0
- data/ext/alphatau/native/sdl/src/render/opengles/SDL_glesfuncs.h +65 -0
- data/ext/alphatau/native/sdl/src/render/opengles/SDL_render_gles.c +1278 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/SDL_gles2funcs.h +80 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/SDL_render_gles2.c +2256 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/SDL_shaders_gles2.c +569 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/SDL_shaders_gles2.h +70 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/Makefile +41 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/convert_gl2_h_into_gles2_stubcall_overs_c.sno +181 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/convert_gl2_h_into_gles2_stubcall_overs_h.sno +116 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/convert_gl2_h_into_gles2funcs_h.sno +82 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/convert_gles2funcs_into_gles2_define_overs_h.sno +42 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/gl2.h +686 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/readme.txt +70 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/testgles2.c +725 -0
- data/ext/alphatau/native/sdl/src/render/opengles2/build_code_with_snobol/triangle.c +147 -0
- data/ext/alphatau/native/sdl/src/render/psp/SDL_render_psp.c +1016 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendfillrect.c +336 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendfillrect.h +27 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendline.c +777 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendline.h +27 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendpoint.c +341 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_blendpoint.h +27 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_draw.h +576 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_drawline.c +209 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_drawline.h +27 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_drawpoint.c +114 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_drawpoint.h +27 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_render_sw.c +882 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_render_sw_c.h +24 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_rotate.c +530 -0
- data/ext/alphatau/native/sdl/src/render/software/SDL_rotate.h +28 -0
- data/ext/alphatau/native/sdl/src/sensor/SDL_sensor.c +546 -0
- data/ext/alphatau/native/sdl/src/sensor/SDL_sensor_c.h +38 -0
- data/ext/alphatau/native/sdl/src/sensor/SDL_syssensor.h +99 -0
- data/ext/alphatau/native/sdl/src/sensor/android/SDL_androidsensor.c +211 -0
- data/ext/alphatau/native/sdl/src/sensor/android/SDL_androidsensor.h +31 -0
- data/ext/alphatau/native/sdl/src/sensor/coremotion/SDL_coremotionsensor.h +30 -0
- data/ext/alphatau/native/sdl/src/sensor/coremotion/SDL_coremotionsensor.m +234 -0
- data/ext/alphatau/native/sdl/src/sensor/dummy/SDL_dummysensor.c +110 -0
- data/ext/alphatau/native/sdl/src/sensor/dummy/SDL_dummysensor.h +23 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_getenv.c +315 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_iconv.c +934 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_malloc.c +5376 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_qsort.c +534 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_stdlib.c +1155 -0
- data/ext/alphatau/native/sdl/src/stdlib/SDL_string.c +1737 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_assert.c +152 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_common.c +1826 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_compare.c +117 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_crc32.c +166 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_font.c +3250 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_fuzzer.c +534 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_harness.c +683 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_imageBlit.c +1559 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_imageBlitBlend.c +2845 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_imageFace.c +247 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_imagePrimitives.c +514 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_imagePrimitivesBlend.c +696 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_log.c +118 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_md5.c +338 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_memory.c +274 -0
- data/ext/alphatau/native/sdl/src/test/SDL_test_random.c +96 -0
- data/ext/alphatau/native/sdl/src/thread/SDL_systhread.h +70 -0
- data/ext/alphatau/native/sdl/src/thread/SDL_thread.c +503 -0
- data/ext/alphatau/native/sdl/src/thread/SDL_thread_c.h +95 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_syscond.c +220 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_sysmutex.c +165 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_sysmutex_c.h +22 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_syssem.c +217 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_systhread.c +71 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_systhread_c.h +26 -0
- data/ext/alphatau/native/sdl/src/thread/generic/SDL_systls.c +38 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_syscond.c +224 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_sysmutex.c +136 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_sysmutex_c.h +22 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_syssem.c +161 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_systhread.c +114 -0
- data/ext/alphatau/native/sdl/src/thread/psp/SDL_systhread_c.h +24 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_syscond.c +158 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_sysmutex.c +195 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_sysmutex_c.h +32 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_syssem.c +209 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_systhread.c +324 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_systhread_c.h +27 -0
- data/ext/alphatau/native/sdl/src/thread/pthread/SDL_systls.c +70 -0
- data/ext/alphatau/native/sdl/src/thread/stdcpp/SDL_syscond.cpp +164 -0
- data/ext/alphatau/native/sdl/src/thread/stdcpp/SDL_sysmutex.cpp +111 -0
- data/ext/alphatau/native/sdl/src/thread/stdcpp/SDL_sysmutex_c.h +30 -0
- data/ext/alphatau/native/sdl/src/thread/stdcpp/SDL_systhread.cpp +168 -0
- data/ext/alphatau/native/sdl/src/thread/stdcpp/SDL_systhread_c.h +26 -0
- data/ext/alphatau/native/sdl/src/thread/windows/SDL_sysmutex.c +110 -0
- data/ext/alphatau/native/sdl/src/thread/windows/SDL_syssem.c +152 -0
- data/ext/alphatau/native/sdl/src/thread/windows/SDL_systhread.c +260 -0
- data/ext/alphatau/native/sdl/src/thread/windows/SDL_systhread_c.h +32 -0
- data/ext/alphatau/native/sdl/src/thread/windows/SDL_systls.c +72 -0
- data/ext/alphatau/native/sdl/src/timer/SDL_timer.c +373 -0
- data/ext/alphatau/native/sdl/src/timer/SDL_timer_c.h +34 -0
- data/ext/alphatau/native/sdl/src/timer/dummy/SDL_systimer.c +75 -0
- data/ext/alphatau/native/sdl/src/timer/haiku/SDL_systimer.c +80 -0
- data/ext/alphatau/native/sdl/src/timer/psp/SDL_systimer.c +91 -0
- data/ext/alphatau/native/sdl/src/timer/unix/SDL_systimer.c +232 -0
- data/ext/alphatau/native/sdl/src/timer/windows/SDL_systimer.c +200 -0
- data/ext/alphatau/native/sdl/src/video/SDL_RLEaccel.c +1581 -0
- data/ext/alphatau/native/sdl/src/video/SDL_RLEaccel_c.h +31 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit.c +296 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit.h +553 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_0.c +483 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_1.c +552 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_A.c +1388 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_N.c +2647 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_auto.c +7419 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_auto.h +30 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_copy.c +162 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_copy.h +24 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_slow.c +164 -0
- data/ext/alphatau/native/sdl/src/video/SDL_blit_slow.h +25 -0
- data/ext/alphatau/native/sdl/src/video/SDL_bmp.c +702 -0
- data/ext/alphatau/native/sdl/src/video/SDL_clipboard.c +90 -0
- data/ext/alphatau/native/sdl/src/video/SDL_egl.c +899 -0
- data/ext/alphatau/native/sdl/src/video/SDL_egl_c.h +149 -0
- data/ext/alphatau/native/sdl/src/video/SDL_fillrect.c +343 -0
- data/ext/alphatau/native/sdl/src/video/SDL_pixels.c +1125 -0
- data/ext/alphatau/native/sdl/src/video/SDL_pixels_c.h +40 -0
- data/ext/alphatau/native/sdl/src/video/SDL_rect.c +531 -0
- data/ext/alphatau/native/sdl/src/video/SDL_rect_c.h +25 -0
- data/ext/alphatau/native/sdl/src/video/SDL_shape.c +309 -0
- data/ext/alphatau/native/sdl/src/video/SDL_shape_internals.h +69 -0
- data/ext/alphatau/native/sdl/src/video/SDL_stretch.c +353 -0
- data/ext/alphatau/native/sdl/src/video/SDL_surface.c +1232 -0
- data/ext/alphatau/native/sdl/src/video/SDL_sysvideo.h +467 -0
- data/ext/alphatau/native/sdl/src/video/SDL_video.c +4160 -0
- data/ext/alphatau/native/sdl/src/video/SDL_vulkan_internal.h +91 -0
- data/ext/alphatau/native/sdl/src/video/SDL_vulkan_utils.c +172 -0
- data/ext/alphatau/native/sdl/src/video/SDL_yuv.c +1834 -0
- data/ext/alphatau/native/sdl/src/video/SDL_yuv_c.h +30 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidclipboard.c +48 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidclipboard.h +32 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidevents.c +123 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidevents.h +27 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidgl.c +62 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidgl.h +34 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidkeyboard.c +391 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidkeyboard.h +36 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidmessagebox.c +37 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidmessagebox.h +29 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidmouse.c +266 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidmouse.h +33 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidtouch.c +151 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidtouch.h +29 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidvideo.c +259 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidvideo.h +51 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidvulkan.c +175 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidvulkan.h +52 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidwindow.c +175 -0
- data/ext/alphatau/native/sdl/src/video/android/SDL_androidwindow.h +45 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaclipboard.h +36 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaclipboard.m +103 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaevents.h +32 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaevents.m +483 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoakeyboard.h +36 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoakeyboard.m +720 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamessagebox.h +29 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamessagebox.m +145 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoametalview.h +63 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoametalview.m +134 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamodes.h +46 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamodes.m +490 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamouse.h +52 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamouse.m +477 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamousetap.h +34 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoamousetap.m +279 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaopengl.h +68 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaopengl.m +428 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaopengles.h +49 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoaopengles.m +132 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoashape.h +45 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoashape.m +113 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoavideo.h +118 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoavideo.m +254 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoavulkan.h +55 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoavulkan.m +231 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoawindow.h +155 -0
- data/ext/alphatau/native/sdl/src/video/cocoa/SDL_cocoawindow.m +1885 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_WM.c +413 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_WM.h +56 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_dyn.c +117 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_dyn.h +41 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_events.c +748 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_events.h +34 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_modes.c +414 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_modes.h +59 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_mouse.c +389 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_mouse.h +44 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_opengl.c +332 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_opengl.h +64 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_render.c +1335 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_render.h +25 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_shape.c +131 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_shape.h +38 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_video.c +418 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_video.h +170 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_window.c +565 -0
- data/ext/alphatau/native/sdl/src/video/directfb/SDL_DirectFB_window.h +82 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullevents.c +41 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullevents_c.h +27 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullframebuffer.c +89 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullframebuffer_c.h +27 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullvideo.c +144 -0
- data/ext/alphatau/native/sdl/src/video/dummy/SDL_nullvideo.h +30 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenevents.c +716 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenevents.h +40 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenframebuffer.c +178 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenframebuffer.h +32 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenmouse.c +275 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenmouse.h +42 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenopengles.c +119 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenopengles.h +49 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenvideo.c +354 -0
- data/ext/alphatau/native/sdl/src/video/emscripten/SDL_emscriptenvideo.h +58 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_BWin.h +679 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bclipboard.cc +95 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bclipboard.h +33 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bevents.cc +41 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bevents.h +39 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bframebuffer.cc +259 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bframebuffer.h +47 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bkeyboard.cc +190 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bkeyboard.h +44 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bmodes.cc +333 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bmodes.h +48 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bopengl.cc +176 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bopengl.h +55 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bvideo.cc +178 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bvideo.h +44 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bwindow.cc +233 -0
- data/ext/alphatau/native/sdl/src/video/haiku/SDL_bwindow.h +55 -0
- data/ext/alphatau/native/sdl/src/video/khronos/EGL/egl.h +303 -0
- data/ext/alphatau/native/sdl/src/video/khronos/EGL/eglext.h +1241 -0
- data/ext/alphatau/native/sdl/src/video/khronos/EGL/eglplatform.h +132 -0
- data/ext/alphatau/native/sdl/src/video/khronos/GLES2/gl2.h +675 -0
- data/ext/alphatau/native/sdl/src/video/khronos/GLES2/gl2ext.h +3505 -0
- data/ext/alphatau/native/sdl/src/video/khronos/GLES2/gl2platform.h +38 -0
- data/ext/alphatau/native/sdl/src/video/khronos/KHR/khrplatform.h +284 -0
- data/ext/alphatau/native/sdl/src/video/khronos/vulkan/vk_platform.h +120 -0
- data/ext/alphatau/native/sdl/src/video/khronos/vulkan/vulkan.h +6458 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmdyn.c +171 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmdyn.h +53 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmevents.c +42 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmevents.h +31 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmmouse.c +501 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmmouse.h +45 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmopengles.c +189 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmopengles.h +48 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmsym.h +99 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmvideo.c +664 -0
- data/ext/alphatau/native/sdl/src/video/kmsdrm/SDL_kmsdrmvideo.h +124 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirdyn.c +170 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirdyn.h +53 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirevents.c +321 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirevents.h +37 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirframebuffer.c +134 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirframebuffer.h +47 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirmouse.c +292 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirmouse.h +37 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_miropengl.c +78 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_miropengl.h +53 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirsym.h +143 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirvideo.c +423 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirvideo.h +49 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirvulkan.c +176 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirvulkan.h +52 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirwindow.c +374 -0
- data/ext/alphatau/native/sdl/src/video/mir/SDL_mirwindow.h +93 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclevents.c +438 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclevents_c.h +30 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclglue.c +24 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclopengles.c +174 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclopengles.h +38 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclvideo.c +183 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclvideo.h +67 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclwindow.c +79 -0
- data/ext/alphatau/native/sdl/src/video/nacl/SDL_naclwindow.h +32 -0
- data/ext/alphatau/native/sdl/src/video/pandora/SDL_pandora.c +838 -0
- data/ext/alphatau/native/sdl/src/video/pandora/SDL_pandora.h +101 -0
- data/ext/alphatau/native/sdl/src/video/pandora/SDL_pandora_events.c +38 -0
- data/ext/alphatau/native/sdl/src/video/pandora/SDL_pandora_events.h +25 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspevents.c +290 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspevents_c.h +31 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspgl.c +210 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspgl_c.h +54 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspmouse.c +41 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspmouse_c.h +24 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspvideo.c +333 -0
- data/ext/alphatau/native/sdl/src/video/psp/SDL_pspvideo.h +102 -0
- data/ext/alphatau/native/sdl/src/video/qnx/gl.c +285 -0
- data/ext/alphatau/native/sdl/src/video/qnx/keyboard.c +133 -0
- data/ext/alphatau/native/sdl/src/video/qnx/sdl_qnx.h +48 -0
- data/ext/alphatau/native/sdl/src/video/qnx/video.c +364 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpievents.c +45 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpievents_c.h +31 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpimouse.c +386 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpimouse.h +43 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpiopengles.c +71 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpiopengles.h +49 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpivideo.c +442 -0
- data/ext/alphatau/native/sdl/src/video/raspberry/SDL_rpivideo.h +104 -0
- data/ext/alphatau/native/sdl/src/video/sdlgenblit.pl +535 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitappdelegate.h +47 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitappdelegate.m +516 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitclipboard.h +35 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitclipboard.m +111 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitevents.h +30 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitevents.m +73 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmessagebox.h +31 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmessagebox.m +208 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmetalview.h +58 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmetalview.m +131 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmodes.h +54 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitmodes.m +378 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitopengles.h +40 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitopengles.m +250 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitopenglview.h +60 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitopenglview.m +384 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitvideo.h +46 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitvideo.m +249 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitview.h +41 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitview.m +328 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitviewcontroller.h +91 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitviewcontroller.m +532 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitvulkan.h +54 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitvulkan.m +222 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitwindow.h +56 -0
- data/ext/alphatau/native/sdl/src/video/uikit/SDL_uikitwindow.m +465 -0
- data/ext/alphatau/native/sdl/src/video/uikit/keyinfotable.h +174 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivanteopengles.c +47 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivanteopengles.h +48 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivanteplatform.c +54 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivanteplatform.h +47 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivantevideo.c +409 -0
- data/ext/alphatau/native/sdl/src/video/vivante/SDL_vivantevideo.h +91 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandclipboard.c +123 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandclipboard.h +32 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylanddatamanager.c +468 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylanddatamanager.h +103 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylanddyn.c +178 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylanddyn.h +107 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandevents.c +1134 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandevents_c.h +51 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandmouse.c +396 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandmouse.h +31 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandopengles.c +93 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandopengles.h +49 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandsym.h +127 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandtouch.c +265 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandtouch.h +352 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandvideo.c +517 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandvideo.h +85 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandvulkan.c +176 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandvulkan.h +52 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandwindow.c +684 -0
- data/ext/alphatau/native/sdl/src/video/wayland/SDL_waylandwindow.h +88 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_msctf.h +242 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_vkeys.h +76 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsclipboard.c +160 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsclipboard.h +36 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsevents.c +1229 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsevents.h +36 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsframebuffer.c +127 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsframebuffer.h +27 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowskeyboard.c +1579 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowskeyboard.h +40 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmessagebox.c +905 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmessagebox.h +29 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmodes.c +407 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmodes.h +47 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmouse.c +322 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsmouse.h +33 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsopengl.c +895 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsopengl.h +142 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsopengles.c +131 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsopengles.h +49 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsshape.c +110 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsshape.h +40 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowstaskdialog.h +156 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsvideo.c +442 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsvideo.h +199 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsvulkan.c +176 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowsvulkan.h +52 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowswindow.c +992 -0
- data/ext/alphatau/native/sdl/src/video/windows/SDL_windowswindow.h +86 -0
- data/ext/alphatau/native/sdl/src/video/windows/wmmsg.h +1052 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtevents.cpp +154 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtevents_c.h +82 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtgamebar.cpp +196 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtgamebar_cpp.h +35 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtkeyboard.cpp +430 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtmessagebox.cpp +112 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtmessagebox.h +29 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtmouse.cpp +224 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtmouse_c.h +40 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtopengles.cpp +203 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtopengles.h +70 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtpointerinput.cpp +415 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtvideo.cpp +842 -0
- data/ext/alphatau/native/sdl/src/video/winrt/SDL_winrtvideo_cpp.h +106 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11clipboard.c +199 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11clipboard.h +33 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11dyn.c +212 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11dyn.h +111 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11events.c +1500 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11events.h +31 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11framebuffer.c +257 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11framebuffer.h +31 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11keyboard.c +543 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11keyboard.h +36 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11messagebox.c +853 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11messagebox.h +28 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11modes.c +1112 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11modes.h +85 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11mouse.c +448 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11mouse.h +31 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11opengl.c +946 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11opengl.h +84 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11opengles.c +109 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11opengles.h +56 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11shape.c +115 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11shape.h +39 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11sym.h +337 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11touch.c +54 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11touch.h +32 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11video.c +497 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11video.h +156 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11vulkan.c +243 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11vulkan.h +48 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11window.c +1619 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11window.h +111 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11xinput2.c +313 -0
- data/ext/alphatau/native/sdl/src/video/x11/SDL_x11xinput2.h +42 -0
- data/ext/alphatau/native/sdl/src/video/x11/edid-parse.c +754 -0
- data/ext/alphatau/native/sdl/src/video/x11/edid.h +167 -0
- data/ext/alphatau/native/sdl/src/video/x11/imKStoUCS.c +350 -0
- data/ext/alphatau/native/sdl/src/video/x11/imKStoUCS.h +32 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/LICENSE +27 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/README.md +63 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/yuv_rgb.c +687 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/yuv_rgb.h +381 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/yuv_rgb_sse_func.h +498 -0
- data/ext/alphatau/native/sdl/src/video/yuv2rgb/yuv_rgb_std_func.h +228 -0
- data/ext/alphatau/native/sdl/test/CMakeLists.txt +122 -0
- data/ext/alphatau/native/sdl/test/COPYING +8 -0
- data/ext/alphatau/native/sdl/test/Makefile.in +328 -0
- data/ext/alphatau/native/sdl/test/README +47 -0
- data/ext/alphatau/native/sdl/test/acinclude.m4 +359 -0
- data/ext/alphatau/native/sdl/test/aclocal.m4 +359 -0
- data/ext/alphatau/native/sdl/test/autogen.sh +12 -0
- data/ext/alphatau/native/sdl/test/axis.bmp +0 -0
- data/ext/alphatau/native/sdl/test/button.bmp +0 -0
- data/ext/alphatau/native/sdl/test/checkkeys.c +248 -0
- data/ext/alphatau/native/sdl/test/configure +5124 -0
- data/ext/alphatau/native/sdl/test/configure.in +191 -0
- data/ext/alphatau/native/sdl/test/controllermap.bmp +0 -0
- data/ext/alphatau/native/sdl/test/controllermap.c +781 -0
- data/ext/alphatau/native/sdl/test/emscripten/joystick-pre.js +25 -0
- data/ext/alphatau/native/sdl/test/gcc-fat.sh +110 -0
- data/ext/alphatau/native/sdl/test/icon.bmp +0 -0
- data/ext/alphatau/native/sdl/test/loopwave.c +179 -0
- data/ext/alphatau/native/sdl/test/loopwavequeue.c +149 -0
- data/ext/alphatau/native/sdl/test/moose.dat +0 -0
- data/ext/alphatau/native/sdl/test/nacl/Makefile +63 -0
- data/ext/alphatau/native/sdl/test/nacl/background.js +40 -0
- data/ext/alphatau/native/sdl/test/nacl/common.js +474 -0
- data/ext/alphatau/native/sdl/test/nacl/index.html +21 -0
- data/ext/alphatau/native/sdl/test/nacl/manifest.json +22 -0
- data/ext/alphatau/native/sdl/test/picture.xbm +14 -0
- data/ext/alphatau/native/sdl/test/relative_mode.markdown +58 -0
- data/ext/alphatau/native/sdl/test/sample.bmp +0 -0
- data/ext/alphatau/native/sdl/test/sample.wav +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p01_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p01_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p01_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p02_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p02_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p02_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p03_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p03_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p04_shape1.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p04_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p04_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p04_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p05_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p06_shape1alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p06_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p06_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p06_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p07_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p07_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p07_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p08_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p08_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p08_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p09_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p09_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p09_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p10_shape1.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p10_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p10_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p10_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p11_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p11_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p11_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p12_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p12_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p13_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p13_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p13_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p14_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p14_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p15_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p15_shape32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p15_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p16_shape1.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p16_shape24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/p16_shape8.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/trollface_24.bmp +0 -0
- data/ext/alphatau/native/sdl/test/shapes/trollface_32alpha.bmp +0 -0
- data/ext/alphatau/native/sdl/test/testatomic.c +727 -0
- data/ext/alphatau/native/sdl/test/testaudiocapture.c +165 -0
- data/ext/alphatau/native/sdl/test/testaudiohotplug.c +203 -0
- data/ext/alphatau/native/sdl/test/testaudioinfo.c +74 -0
- data/ext/alphatau/native/sdl/test/testautomation.c +124 -0
- data/ext/alphatau/native/sdl/test/testautomation_audio.c +1038 -0
- data/ext/alphatau/native/sdl/test/testautomation_clipboard.c +184 -0
- data/ext/alphatau/native/sdl/test/testautomation_events.c +201 -0
- data/ext/alphatau/native/sdl/test/testautomation_hints.c +168 -0
- data/ext/alphatau/native/sdl/test/testautomation_keyboard.c +713 -0
- data/ext/alphatau/native/sdl/test/testautomation_main.c +157 -0
- data/ext/alphatau/native/sdl/test/testautomation_mouse.c +606 -0
- data/ext/alphatau/native/sdl/test/testautomation_pixels.c +529 -0
- data/ext/alphatau/native/sdl/test/testautomation_platform.c +584 -0
- data/ext/alphatau/native/sdl/test/testautomation_rect.c +1696 -0
- data/ext/alphatau/native/sdl/test/testautomation_render.c +1099 -0
- data/ext/alphatau/native/sdl/test/testautomation_rwops.c +748 -0
- data/ext/alphatau/native/sdl/test/testautomation_sdltest.c +1319 -0
- data/ext/alphatau/native/sdl/test/testautomation_stdlib.c +319 -0
- data/ext/alphatau/native/sdl/test/testautomation_suites.h +54 -0
- data/ext/alphatau/native/sdl/test/testautomation_surface.c +647 -0
- data/ext/alphatau/native/sdl/test/testautomation_syswm.c +61 -0
- data/ext/alphatau/native/sdl/test/testautomation_timer.c +201 -0
- data/ext/alphatau/native/sdl/test/testautomation_video.c +1811 -0
- data/ext/alphatau/native/sdl/test/testbounds.c +40 -0
- data/ext/alphatau/native/sdl/test/testcustomcursor.c +259 -0
- data/ext/alphatau/native/sdl/test/testdisplayinfo.c +96 -0
- data/ext/alphatau/native/sdl/test/testdraw2.c +305 -0
- data/ext/alphatau/native/sdl/test/testdrawchessboard.c +147 -0
- data/ext/alphatau/native/sdl/test/testdropfile.c +98 -0
- data/ext/alphatau/native/sdl/test/testerror.c +76 -0
- data/ext/alphatau/native/sdl/test/testfile.c +283 -0
- data/ext/alphatau/native/sdl/test/testfilesystem.c +60 -0
- data/ext/alphatau/native/sdl/test/testgamecontroller.c +375 -0
- data/ext/alphatau/native/sdl/test/testgesture.c +309 -0
- data/ext/alphatau/native/sdl/test/testgl2.c +416 -0
- data/ext/alphatau/native/sdl/test/testgles.c +355 -0
- data/ext/alphatau/native/sdl/test/testgles2.c +732 -0
- data/ext/alphatau/native/sdl/test/testhaptic.c +369 -0
- data/ext/alphatau/native/sdl/test/testhittesting.c +134 -0
- data/ext/alphatau/native/sdl/test/testhotplug.c +162 -0
- data/ext/alphatau/native/sdl/test/testiconv.c +88 -0
- data/ext/alphatau/native/sdl/test/testime.c +801 -0
- data/ext/alphatau/native/sdl/test/testintersections.c +363 -0
- data/ext/alphatau/native/sdl/test/testjoystick.c +387 -0
- data/ext/alphatau/native/sdl/test/testkeys.c +40 -0
- data/ext/alphatau/native/sdl/test/testloadso.c +82 -0
- data/ext/alphatau/native/sdl/test/testlock.c +128 -0
- data/ext/alphatau/native/sdl/test/testmessage.c +193 -0
- data/ext/alphatau/native/sdl/test/testmultiaudio.c +199 -0
- data/ext/alphatau/native/sdl/test/testnative.c +237 -0
- data/ext/alphatau/native/sdl/test/testnative.h +46 -0
- data/ext/alphatau/native/sdl/test/testnativecocoa.m +51 -0
- data/ext/alphatau/native/sdl/test/testnativew32.c +86 -0
- data/ext/alphatau/native/sdl/test/testnativex11.c +53 -0
- data/ext/alphatau/native/sdl/test/testoverlay2.c +408 -0
- data/ext/alphatau/native/sdl/test/testplatform.c +442 -0
- data/ext/alphatau/native/sdl/test/testpower.c +80 -0
- data/ext/alphatau/native/sdl/test/testqsort.c +108 -0
- data/ext/alphatau/native/sdl/test/testrelative.c +126 -0
- data/ext/alphatau/native/sdl/test/testrendercopyex.c +233 -0
- data/ext/alphatau/native/sdl/test/testrendertarget.c +335 -0
- data/ext/alphatau/native/sdl/test/testresample.c +120 -0
- data/ext/alphatau/native/sdl/test/testrumble.c +153 -0
- data/ext/alphatau/native/sdl/test/testscale.c +224 -0
- data/ext/alphatau/native/sdl/test/testsem.c +130 -0
- data/ext/alphatau/native/sdl/test/testsensor.c +117 -0
- data/ext/alphatau/native/sdl/test/testshader.c +500 -0
- data/ext/alphatau/native/sdl/test/testshape.c +200 -0
- data/ext/alphatau/native/sdl/test/testsprite2.c +409 -0
- data/ext/alphatau/native/sdl/test/testspriteminimal.c +194 -0
- data/ext/alphatau/native/sdl/test/teststreaming.c +190 -0
- data/ext/alphatau/native/sdl/test/testthread.c +130 -0
- data/ext/alphatau/native/sdl/test/testtimer.c +122 -0
- data/ext/alphatau/native/sdl/test/testver.c +47 -0
- data/ext/alphatau/native/sdl/test/testviewport.c +217 -0
- data/ext/alphatau/native/sdl/test/testvulkan.c +1201 -0
- data/ext/alphatau/native/sdl/test/testwm2.c +174 -0
- data/ext/alphatau/native/sdl/test/testyuv.bmp +0 -0
- data/ext/alphatau/native/sdl/test/testyuv.c +455 -0
- data/ext/alphatau/native/sdl/test/testyuv_cvt.c +300 -0
- data/ext/alphatau/native/sdl/test/testyuv_cvt.h +16 -0
- data/ext/alphatau/native/sdl/test/torturethread.c +113 -0
- data/ext/alphatau/native/sdl/test/utf8.txt +287 -0
- data/ext/alphatau/native/sdl/visualtest/COPYING.txt +18 -0
- data/ext/alphatau/native/sdl/visualtest/Makefile.in +37 -0
- data/ext/alphatau/native/sdl/visualtest/README.txt +214 -0
- data/ext/alphatau/native/sdl/visualtest/acinclude.m4 +359 -0
- data/ext/alphatau/native/sdl/visualtest/autogen.sh +12 -0
- data/ext/alphatau/native/sdl/visualtest/compile +1 -0
- data/ext/alphatau/native/sdl/visualtest/config.h +23 -0
- data/ext/alphatau/native/sdl/visualtest/config.h.in +22 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.actions +3 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.config +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.parameters +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.actions +1 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.config +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.parameters +24 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.actions +3 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.config +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.parameters +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_geometry/testsprite2_geometry.actions +3 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_geometry/testsprite2_geometry.config +5 -0
- data/ext/alphatau/native/sdl/visualtest/configs/testsprite2_geometry/testsprite2_geometry.parameters +5 -0
- data/ext/alphatau/native/sdl/visualtest/configure +5203 -0
- data/ext/alphatau/native/sdl/visualtest/configure.in +166 -0
- data/ext/alphatau/native/sdl/visualtest/depcomp +1 -0
- data/ext/alphatau/native/sdl/visualtest/docs/Doxyfile +1936 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_action_configparser.h +149 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_exhaustive_variator.h +64 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_harness_argparser.h +75 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_mischelper.h +28 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_parsehelper.h +46 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_process.h +112 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_random_variator.h +61 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_rwhelper.h +87 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_screenshot.h +52 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_sut_configparser.h +105 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_variator_common.h +122 -0
- data/ext/alphatau/native/sdl/visualtest/include/SDL_visualtest_variators.h +66 -0
- data/ext/alphatau/native/sdl/visualtest/install-sh +1 -0
- data/ext/alphatau/native/sdl/visualtest/launch_harness.cmd +2 -0
- data/ext/alphatau/native/sdl/visualtest/launch_harness.sh +6 -0
- data/ext/alphatau/native/sdl/visualtest/missing +1 -0
- data/ext/alphatau/native/sdl/visualtest/src/action_configparser.c +396 -0
- data/ext/alphatau/native/sdl/visualtest/src/harness_argparser.c +358 -0
- data/ext/alphatau/native/sdl/visualtest/src/linux/linux_process.c +199 -0
- data/ext/alphatau/native/sdl/visualtest/src/mischelper.c +28 -0
- data/ext/alphatau/native/sdl/visualtest/src/parsehelper.c +231 -0
- data/ext/alphatau/native/sdl/visualtest/src/rwhelper.c +131 -0
- data/ext/alphatau/native/sdl/visualtest/src/screenshot.c +136 -0
- data/ext/alphatau/native/sdl/visualtest/src/sut_configparser.c +232 -0
- data/ext/alphatau/native/sdl/visualtest/src/testharness.c +533 -0
- data/ext/alphatau/native/sdl/visualtest/src/variator_common.c +225 -0
- data/ext/alphatau/native/sdl/visualtest/src/variator_exhaustive.c +132 -0
- data/ext/alphatau/native/sdl/visualtest/src/variator_random.c +111 -0
- data/ext/alphatau/native/sdl/visualtest/src/variators.c +93 -0
- data/ext/alphatau/native/sdl/visualtest/src/windows/windows_process.c +284 -0
- data/ext/alphatau/native/sdl/visualtest/src/windows/windows_screenshot.c +349 -0
- data/ext/alphatau/native/sdl/visualtest/stamp-h1 +1 -0
- data/ext/alphatau/native/sdl/visualtest/testsprite2_sample.actions +3 -0
- data/ext/alphatau/native/sdl/visualtest/testsprite2_sample.config +6 -0
- data/ext/alphatau/native/sdl/visualtest/testsprite2_sample.parameters +29 -0
- data/ext/alphatau/native/sdl/visualtest/unittest/testquit.actions +1 -0
- data/ext/alphatau/native/sdl/visualtest/unittest/testquit.c +101 -0
- data/ext/alphatau/native/sdl/visualtest/unittest/testquit.config +5 -0
- data/ext/alphatau/native/sdl/visualtest/unittest/testquit.parameters +3 -0
- data/ext/alphatau/native/sdl/wayland-protocols/pointer-constraints-unstable-v1.xml +339 -0
- data/ext/alphatau/native/sdl/wayland-protocols/relative-pointer-unstable-v1.xml +136 -0
- data/ext/alphatau/native/sdl/wayland-protocols/wayland.xml +2746 -0
- data/ext/alphatau/native/sdl/wayland-protocols/xdg-shell-unstable-v6.xml +1044 -0
- data/ext/alphatau/native/sdl/wayland-protocols/xdg-shell.xml +1120 -0
- data/lib/alphatau.rb +12 -0
- data/lib/alphatau/version.rb +3 -0
- metadata +1465 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
Microsoft Visual Studio Solution File, Format Version 10.00
|
|
3
|
+
# Visual C++ Express 2008
|
|
4
|
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgui", "testgui.vcproj", "{08769AC3-785A-4DDC-BFC7-1775414B7AB7}"
|
|
5
|
+
EndProject
|
|
6
|
+
Global
|
|
7
|
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
8
|
+
Debug|Win32 = Debug|Win32
|
|
9
|
+
Release|Win32 = Release|Win32
|
|
10
|
+
EndGlobalSection
|
|
11
|
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
12
|
+
{08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
13
|
+
{08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.Build.0 = Debug|Win32
|
|
14
|
+
{08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.ActiveCfg = Release|Win32
|
|
15
|
+
{08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.Build.0 = Release|Win32
|
|
16
|
+
EndGlobalSection
|
|
17
|
+
GlobalSection(SolutionProperties) = preSolution
|
|
18
|
+
HideSolutionNode = FALSE
|
|
19
|
+
EndGlobalSection
|
|
20
|
+
EndGlobal
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="Windows-1252"?>
|
|
2
|
+
<VisualStudioProject
|
|
3
|
+
ProjectType="Visual C++"
|
|
4
|
+
Version="9.00"
|
|
5
|
+
Name="testgui"
|
|
6
|
+
ProjectGUID="{08769AC3-785A-4DDC-BFC7-1775414B7AB7}"
|
|
7
|
+
RootNamespace="testgui"
|
|
8
|
+
Keyword="Win32Proj"
|
|
9
|
+
TargetFrameworkVersion="196613"
|
|
10
|
+
>
|
|
11
|
+
<Platforms>
|
|
12
|
+
<Platform
|
|
13
|
+
Name="Win32"
|
|
14
|
+
/>
|
|
15
|
+
</Platforms>
|
|
16
|
+
<ToolFiles>
|
|
17
|
+
</ToolFiles>
|
|
18
|
+
<Configurations>
|
|
19
|
+
<Configuration
|
|
20
|
+
Name="Debug|Win32"
|
|
21
|
+
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
|
22
|
+
IntermediateDirectory="$(ConfigurationName)"
|
|
23
|
+
ConfigurationType="1"
|
|
24
|
+
CharacterSet="1"
|
|
25
|
+
>
|
|
26
|
+
<Tool
|
|
27
|
+
Name="VCPreBuildEventTool"
|
|
28
|
+
/>
|
|
29
|
+
<Tool
|
|
30
|
+
Name="VCCustomBuildTool"
|
|
31
|
+
/>
|
|
32
|
+
<Tool
|
|
33
|
+
Name="VCXMLDataGeneratorTool"
|
|
34
|
+
/>
|
|
35
|
+
<Tool
|
|
36
|
+
Name="VCWebServiceProxyGeneratorTool"
|
|
37
|
+
/>
|
|
38
|
+
<Tool
|
|
39
|
+
Name="VCMIDLTool"
|
|
40
|
+
/>
|
|
41
|
+
<Tool
|
|
42
|
+
Name="VCCLCompilerTool"
|
|
43
|
+
Optimization="0"
|
|
44
|
+
AdditionalIncludeDirectories=""..\..\hidapi-externals\fox\include";..\hidapi"
|
|
45
|
+
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
|
46
|
+
MinimalRebuild="true"
|
|
47
|
+
BasicRuntimeChecks="3"
|
|
48
|
+
RuntimeLibrary="3"
|
|
49
|
+
UsePrecompiledHeader="0"
|
|
50
|
+
WarningLevel="3"
|
|
51
|
+
DebugInformationFormat="4"
|
|
52
|
+
/>
|
|
53
|
+
<Tool
|
|
54
|
+
Name="VCManagedResourceCompilerTool"
|
|
55
|
+
/>
|
|
56
|
+
<Tool
|
|
57
|
+
Name="VCResourceCompilerTool"
|
|
58
|
+
/>
|
|
59
|
+
<Tool
|
|
60
|
+
Name="VCPreLinkEventTool"
|
|
61
|
+
/>
|
|
62
|
+
<Tool
|
|
63
|
+
Name="VCLinkerTool"
|
|
64
|
+
AdditionalDependencies="setupapi.lib fox-1.6.lib"
|
|
65
|
+
OutputFile="$(ProjectName).exe"
|
|
66
|
+
LinkIncremental="2"
|
|
67
|
+
AdditionalLibraryDirectories="..\hidapi\objfre_wxp_x86\i386;"..\..\hidapi-externals\fox\lib""
|
|
68
|
+
GenerateDebugInformation="true"
|
|
69
|
+
SubSystem="2"
|
|
70
|
+
EntryPointSymbol="mainCRTStartup"
|
|
71
|
+
TargetMachine="1"
|
|
72
|
+
/>
|
|
73
|
+
<Tool
|
|
74
|
+
Name="VCALinkTool"
|
|
75
|
+
/>
|
|
76
|
+
<Tool
|
|
77
|
+
Name="VCManifestTool"
|
|
78
|
+
/>
|
|
79
|
+
<Tool
|
|
80
|
+
Name="VCXDCMakeTool"
|
|
81
|
+
/>
|
|
82
|
+
<Tool
|
|
83
|
+
Name="VCBscMakeTool"
|
|
84
|
+
/>
|
|
85
|
+
<Tool
|
|
86
|
+
Name="VCFxCopTool"
|
|
87
|
+
/>
|
|
88
|
+
<Tool
|
|
89
|
+
Name="VCAppVerifierTool"
|
|
90
|
+
/>
|
|
91
|
+
<Tool
|
|
92
|
+
Name="VCPostBuildEventTool"
|
|
93
|
+
CommandLine=""
|
|
94
|
+
/>
|
|
95
|
+
</Configuration>
|
|
96
|
+
<Configuration
|
|
97
|
+
Name="Release|Win32"
|
|
98
|
+
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
|
99
|
+
IntermediateDirectory="$(ConfigurationName)"
|
|
100
|
+
ConfigurationType="1"
|
|
101
|
+
CharacterSet="1"
|
|
102
|
+
WholeProgramOptimization="1"
|
|
103
|
+
>
|
|
104
|
+
<Tool
|
|
105
|
+
Name="VCPreBuildEventTool"
|
|
106
|
+
/>
|
|
107
|
+
<Tool
|
|
108
|
+
Name="VCCustomBuildTool"
|
|
109
|
+
/>
|
|
110
|
+
<Tool
|
|
111
|
+
Name="VCXMLDataGeneratorTool"
|
|
112
|
+
/>
|
|
113
|
+
<Tool
|
|
114
|
+
Name="VCWebServiceProxyGeneratorTool"
|
|
115
|
+
/>
|
|
116
|
+
<Tool
|
|
117
|
+
Name="VCMIDLTool"
|
|
118
|
+
/>
|
|
119
|
+
<Tool
|
|
120
|
+
Name="VCCLCompilerTool"
|
|
121
|
+
Optimization="2"
|
|
122
|
+
EnableIntrinsicFunctions="true"
|
|
123
|
+
AdditionalIncludeDirectories=""..\..\hidapi-externals\fox\include";..\hidapi"
|
|
124
|
+
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
|
125
|
+
RuntimeLibrary="2"
|
|
126
|
+
EnableFunctionLevelLinking="true"
|
|
127
|
+
UsePrecompiledHeader="0"
|
|
128
|
+
WarningLevel="3"
|
|
129
|
+
DebugInformationFormat="3"
|
|
130
|
+
/>
|
|
131
|
+
<Tool
|
|
132
|
+
Name="VCManagedResourceCompilerTool"
|
|
133
|
+
/>
|
|
134
|
+
<Tool
|
|
135
|
+
Name="VCResourceCompilerTool"
|
|
136
|
+
/>
|
|
137
|
+
<Tool
|
|
138
|
+
Name="VCPreLinkEventTool"
|
|
139
|
+
/>
|
|
140
|
+
<Tool
|
|
141
|
+
Name="VCLinkerTool"
|
|
142
|
+
AdditionalDependencies="setupapi.lib fox-1.6.lib"
|
|
143
|
+
OutputFile="$(ProjectName).exe"
|
|
144
|
+
LinkIncremental="1"
|
|
145
|
+
AdditionalLibraryDirectories="..\hidapi\objfre_wxp_x86\i386;"..\..\hidapi-externals\fox\lib""
|
|
146
|
+
GenerateDebugInformation="true"
|
|
147
|
+
SubSystem="2"
|
|
148
|
+
OptimizeReferences="2"
|
|
149
|
+
EnableCOMDATFolding="2"
|
|
150
|
+
EntryPointSymbol="mainCRTStartup"
|
|
151
|
+
TargetMachine="1"
|
|
152
|
+
/>
|
|
153
|
+
<Tool
|
|
154
|
+
Name="VCALinkTool"
|
|
155
|
+
/>
|
|
156
|
+
<Tool
|
|
157
|
+
Name="VCManifestTool"
|
|
158
|
+
/>
|
|
159
|
+
<Tool
|
|
160
|
+
Name="VCXDCMakeTool"
|
|
161
|
+
/>
|
|
162
|
+
<Tool
|
|
163
|
+
Name="VCBscMakeTool"
|
|
164
|
+
/>
|
|
165
|
+
<Tool
|
|
166
|
+
Name="VCFxCopTool"
|
|
167
|
+
/>
|
|
168
|
+
<Tool
|
|
169
|
+
Name="VCAppVerifierTool"
|
|
170
|
+
/>
|
|
171
|
+
<Tool
|
|
172
|
+
Name="VCPostBuildEventTool"
|
|
173
|
+
CommandLine=""
|
|
174
|
+
/>
|
|
175
|
+
</Configuration>
|
|
176
|
+
</Configurations>
|
|
177
|
+
<References>
|
|
178
|
+
</References>
|
|
179
|
+
<Files>
|
|
180
|
+
<Filter
|
|
181
|
+
Name="Source Files"
|
|
182
|
+
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
183
|
+
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
184
|
+
>
|
|
185
|
+
<File
|
|
186
|
+
RelativePath="..\windows\hid.c"
|
|
187
|
+
>
|
|
188
|
+
</File>
|
|
189
|
+
<File
|
|
190
|
+
RelativePath=".\test.cpp"
|
|
191
|
+
>
|
|
192
|
+
</File>
|
|
193
|
+
</Filter>
|
|
194
|
+
<Filter
|
|
195
|
+
Name="Header Files"
|
|
196
|
+
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
197
|
+
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
198
|
+
>
|
|
199
|
+
<File
|
|
200
|
+
RelativePath="..\hidapi\hidapi.h"
|
|
201
|
+
>
|
|
202
|
+
</File>
|
|
203
|
+
</Filter>
|
|
204
|
+
<Filter
|
|
205
|
+
Name="Resource Files"
|
|
206
|
+
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
|
207
|
+
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
208
|
+
>
|
|
209
|
+
</Filter>
|
|
210
|
+
<File
|
|
211
|
+
RelativePath=".\ReadMe.txt"
|
|
212
|
+
>
|
|
213
|
+
</File>
|
|
214
|
+
</Files>
|
|
215
|
+
<Globals>
|
|
216
|
+
</Globals>
|
|
217
|
+
</VisualStudioProject>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This is a sample udev file for HIDAPI devices which changes the permissions
|
|
2
|
+
# to 0666 (world readable/writable) for a specified device on Linux systems.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# If you are using the libusb implementation of hidapi (libusb/hid.c), then
|
|
6
|
+
# use something like the following line, substituting the VID and PID with
|
|
7
|
+
# those of your device. Note that for kernels before 2.6.24, you will need
|
|
8
|
+
# to substitute "usb" with "usb_device". It shouldn't hurt to use two lines
|
|
9
|
+
# (one each way) for compatibility with older systems.
|
|
10
|
+
|
|
11
|
+
# HIDAPI/libusb
|
|
12
|
+
SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", MODE="0666"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# If you are using the hidraw implementation (linux/hid.c), then do something
|
|
16
|
+
# like the following, substituting the VID and PID with your device. Busnum 1
|
|
17
|
+
# is USB.
|
|
18
|
+
|
|
19
|
+
# HIDAPI/hidraw
|
|
20
|
+
KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", MODE="0666"
|
|
21
|
+
|
|
22
|
+
# Once done, optionally rename this file for your device, and drop it into
|
|
23
|
+
# /etc/udev/rules.d and unplug and re-plug your device. This is all that is
|
|
24
|
+
# necessary to see the new permissions. Udev does not have to be restarted.
|
|
25
|
+
|
|
26
|
+
# Note that the hexadecimal values for VID and PID are case sensitive and
|
|
27
|
+
# must be lower case.
|
|
28
|
+
|
|
29
|
+
# If you think permissions of 0666 are too loose, then see:
|
|
30
|
+
# http://reactivated.net/writing_udev_rules.html for more information on finer
|
|
31
|
+
# grained permission setting. For example, it might be sufficient to just
|
|
32
|
+
# set the group or user owner for specific devices (for example the plugdev
|
|
33
|
+
# group on some systems).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
lib_LTLIBRARIES = libhidapi.la
|
|
2
|
+
libhidapi_la_SOURCES = hid.c
|
|
3
|
+
libhidapi_la_LDFLAGS = $(LTLDFLAGS)
|
|
4
|
+
AM_CPPFLAGS = -I$(top_srcdir)/hidapi/
|
|
5
|
+
libhidapi_la_LIBADD = $(LIBS)
|
|
6
|
+
|
|
7
|
+
hdrdir = $(includedir)/hidapi
|
|
8
|
+
hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h
|
|
9
|
+
|
|
10
|
+
EXTRA_DIST = \
|
|
11
|
+
ddk_build \
|
|
12
|
+
hidapi.vcproj \
|
|
13
|
+
hidtest.vcproj \
|
|
14
|
+
Makefile-manual \
|
|
15
|
+
Makefile.mingw \
|
|
16
|
+
hidapi.sln
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
###########################################
|
|
2
|
+
# Simple Makefile for HIDAPI test program
|
|
3
|
+
#
|
|
4
|
+
# Alan Ott
|
|
5
|
+
# Signal 11 Software
|
|
6
|
+
# 2010-06-01
|
|
7
|
+
###########################################
|
|
8
|
+
|
|
9
|
+
all: hidtest libhidapi.dll
|
|
10
|
+
|
|
11
|
+
CC=gcc
|
|
12
|
+
CXX=g++
|
|
13
|
+
COBJS=hid.o
|
|
14
|
+
CPPOBJS=../hidtest/hidtest.o
|
|
15
|
+
OBJS=$(COBJS) $(CPPOBJS)
|
|
16
|
+
CFLAGS=-I../hidapi -g -c
|
|
17
|
+
LIBS= -lsetupapi
|
|
18
|
+
DLL_LDFLAGS = -mwindows -lsetupapi
|
|
19
|
+
|
|
20
|
+
hidtest: $(OBJS)
|
|
21
|
+
g++ -g $^ $(LIBS) -o hidtest
|
|
22
|
+
|
|
23
|
+
libhidapi.dll: $(OBJS)
|
|
24
|
+
$(CC) -g $^ $(DLL_LDFLAGS) -o libhidapi.dll
|
|
25
|
+
|
|
26
|
+
$(COBJS): %.o: %.c
|
|
27
|
+
$(CC) $(CFLAGS) $< -o $@
|
|
28
|
+
|
|
29
|
+
$(CPPOBJS): %.o: %.cpp
|
|
30
|
+
$(CXX) $(CFLAGS) $< -o $@
|
|
31
|
+
|
|
32
|
+
clean:
|
|
33
|
+
rm *.o ../hidtest/*.o hidtest.exe
|
|
34
|
+
|
|
35
|
+
.PHONY: clean
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
LIBRARY hidapi
|
|
2
|
+
EXPORTS
|
|
3
|
+
hid_open @1
|
|
4
|
+
hid_write @2
|
|
5
|
+
hid_read @3
|
|
6
|
+
hid_close @4
|
|
7
|
+
hid_get_product_string @5
|
|
8
|
+
hid_get_manufacturer_string @6
|
|
9
|
+
hid_get_serial_number_string @7
|
|
10
|
+
hid_get_indexed_string @8
|
|
11
|
+
hid_error @9
|
|
12
|
+
hid_set_nonblocking @10
|
|
13
|
+
hid_enumerate @11
|
|
14
|
+
hid_open_path @12
|
|
15
|
+
hid_send_feature_report @13
|
|
16
|
+
hid_get_feature_report @14
|
|
17
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#############################################################################
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) Microsoft Corporation 1995, 1996
|
|
4
|
+
# All Rights Reserved.
|
|
5
|
+
#
|
|
6
|
+
# MAKEFILE for HID directory
|
|
7
|
+
#
|
|
8
|
+
#############################################################################
|
|
9
|
+
|
|
10
|
+
!IFDEF WIN95_BUILD
|
|
11
|
+
|
|
12
|
+
ROOT=..\..\..\..
|
|
13
|
+
|
|
14
|
+
VERSIONLIST = debug retail
|
|
15
|
+
IS_32 = TRUE
|
|
16
|
+
IS_SDK = TRUE
|
|
17
|
+
IS_PRIVATE = TRUE
|
|
18
|
+
IS_SDK = TRUE
|
|
19
|
+
IS_DDK = TRUE
|
|
20
|
+
WIN32 = TRUE
|
|
21
|
+
COMMONMKFILE = hidapi.mk
|
|
22
|
+
|
|
23
|
+
!include $(ROOT)\dev\master.mk
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
!ELSE
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
|
|
30
|
+
# file to this component. This file merely indirects to the real make file
|
|
31
|
+
# that is shared by all the driver components of the Windows NT DDK
|
|
32
|
+
#
|
|
33
|
+
|
|
34
|
+
!IF DEFINED(_NT_TARGET_VERSION)
|
|
35
|
+
! IF $(_NT_TARGET_VERSION)>=0x501
|
|
36
|
+
! INCLUDE $(NTMAKEENV)\makefile.def
|
|
37
|
+
! ELSE
|
|
38
|
+
# Only warn once per directory
|
|
39
|
+
! INCLUDE $(NTMAKEENV)\makefile.plt
|
|
40
|
+
! IF "$(BUILD_PASS)"=="PASS1"
|
|
41
|
+
! message BUILDMSG: Warning : The sample "$(MAKEDIR)" is not valid for the current OS target.
|
|
42
|
+
! ENDIF
|
|
43
|
+
! ENDIF
|
|
44
|
+
!ELSE
|
|
45
|
+
! INCLUDE $(NTMAKEENV)\makefile.def
|
|
46
|
+
!ENDIF
|
|
47
|
+
|
|
48
|
+
!ENDIF
|
|
49
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
TARGETNAME=hidapi
|
|
2
|
+
TARGETTYPE=DYNLINK
|
|
3
|
+
UMTYPE=console
|
|
4
|
+
UMENTRY=main
|
|
5
|
+
|
|
6
|
+
MSC_WARNING_LEVEL=/W3 /WX
|
|
7
|
+
|
|
8
|
+
TARGETLIBS=$(SDK_LIB_PATH)\hid.lib \
|
|
9
|
+
$(SDK_LIB_PATH)\setupapi.lib \
|
|
10
|
+
$(SDK_LIB_PATH)\kernel32.lib \
|
|
11
|
+
$(SDK_LIB_PATH)\comdlg32.lib
|
|
12
|
+
|
|
13
|
+
USE_MSVCRT=1
|
|
14
|
+
|
|
15
|
+
INCLUDES= ..\..\hidapi
|
|
16
|
+
SOURCES= ..\hid.c \
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
TARGET_DESTINATION=retail
|
|
20
|
+
|
|
21
|
+
MUI=0
|
|
22
|
+
MUI_COMMENT="HID Interface DLL"
|
|
23
|
+
|
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
/*******************************************************
|
|
2
|
+
HIDAPI - Multi-Platform library for
|
|
3
|
+
communication with HID devices.
|
|
4
|
+
|
|
5
|
+
Alan Ott
|
|
6
|
+
Signal 11 Software
|
|
7
|
+
|
|
8
|
+
8/22/2009
|
|
9
|
+
|
|
10
|
+
Copyright 2009, All Rights Reserved.
|
|
11
|
+
|
|
12
|
+
At the discretion of the user of this library,
|
|
13
|
+
this software may be licensed under the terms of the
|
|
14
|
+
GNU General Public License v3, a BSD-Style license, or the
|
|
15
|
+
original HIDAPI license as outlined in the LICENSE.txt,
|
|
16
|
+
LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt
|
|
17
|
+
files located at the root of the source distribution.
|
|
18
|
+
These files may also be found in the public source
|
|
19
|
+
code repository located at:
|
|
20
|
+
http://github.com/signal11/hidapi .
|
|
21
|
+
********************************************************/
|
|
22
|
+
|
|
23
|
+
#include <windows.h>
|
|
24
|
+
|
|
25
|
+
#ifndef _NTDEF_
|
|
26
|
+
typedef LONG NTSTATUS;
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#ifdef __MINGW32__
|
|
30
|
+
#include <ntdef.h>
|
|
31
|
+
#include <winbase.h>
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#ifdef __CYGWIN__
|
|
35
|
+
#include <ntdef.h>
|
|
36
|
+
#define _wcsdup wcsdup
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
/* SDL C runtime functions */
|
|
40
|
+
#include "SDL_stdinc.h"
|
|
41
|
+
|
|
42
|
+
#define calloc SDL_calloc
|
|
43
|
+
#define free SDL_free
|
|
44
|
+
#define malloc SDL_malloc
|
|
45
|
+
#define memcpy SDL_memcpy
|
|
46
|
+
#define memset SDL_memset
|
|
47
|
+
#define strcmp SDL_strcmp
|
|
48
|
+
#define strlen SDL_strlen
|
|
49
|
+
#define strncpy SDL_strlcpy
|
|
50
|
+
#define strstr SDL_strstr
|
|
51
|
+
#define strtol SDL_strtol
|
|
52
|
+
#define wcscmp SDL_wcscmp
|
|
53
|
+
#define _wcsdup SDL_wcsdup
|
|
54
|
+
|
|
55
|
+
/* The maximum number of characters that can be passed into the
|
|
56
|
+
HidD_Get*String() functions without it failing.*/
|
|
57
|
+
#define MAX_STRING_WCHARS 0xFFF
|
|
58
|
+
|
|
59
|
+
/*#define HIDAPI_USE_DDK*/
|
|
60
|
+
|
|
61
|
+
#ifdef __cplusplus
|
|
62
|
+
extern "C" {
|
|
63
|
+
#endif
|
|
64
|
+
#include <setupapi.h>
|
|
65
|
+
#include <winioctl.h>
|
|
66
|
+
#ifdef HIDAPI_USE_DDK
|
|
67
|
+
#include <hidsdi.h>
|
|
68
|
+
#endif
|
|
69
|
+
|
|
70
|
+
/* Copied from inc/ddk/hidclass.h, part of the Windows DDK. */
|
|
71
|
+
#define HID_OUT_CTL_CODE(id) \
|
|
72
|
+
CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
|
|
73
|
+
#define IOCTL_HID_GET_FEATURE HID_OUT_CTL_CODE(100)
|
|
74
|
+
|
|
75
|
+
#ifdef __cplusplus
|
|
76
|
+
} /* extern "C" */
|
|
77
|
+
#endif
|
|
78
|
+
|
|
79
|
+
#include <stdio.h>
|
|
80
|
+
#include <stdlib.h>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
#include "../hidapi/hidapi.h"
|
|
84
|
+
|
|
85
|
+
#undef MIN
|
|
86
|
+
#define MIN(x,y) ((x) < (y)? (x): (y))
|
|
87
|
+
|
|
88
|
+
#ifdef _MSC_VER
|
|
89
|
+
/* Thanks Microsoft, but I know how to use strncpy(). */
|
|
90
|
+
#pragma warning(disable:4996)
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
#ifdef __cplusplus
|
|
94
|
+
extern "C" {
|
|
95
|
+
#endif
|
|
96
|
+
|
|
97
|
+
#ifndef HIDAPI_USE_DDK
|
|
98
|
+
/* Since we're not building with the DDK, and the HID header
|
|
99
|
+
files aren't part of the SDK, we have to define all this
|
|
100
|
+
stuff here. In lookup_functions(), the function pointers
|
|
101
|
+
defined below are set. */
|
|
102
|
+
typedef struct _HIDD_ATTRIBUTES{
|
|
103
|
+
ULONG Size;
|
|
104
|
+
USHORT VendorID;
|
|
105
|
+
USHORT ProductID;
|
|
106
|
+
USHORT VersionNumber;
|
|
107
|
+
} HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;
|
|
108
|
+
|
|
109
|
+
typedef USHORT USAGE;
|
|
110
|
+
typedef struct _HIDP_CAPS {
|
|
111
|
+
USAGE Usage;
|
|
112
|
+
USAGE UsagePage;
|
|
113
|
+
USHORT InputReportByteLength;
|
|
114
|
+
USHORT OutputReportByteLength;
|
|
115
|
+
USHORT FeatureReportByteLength;
|
|
116
|
+
USHORT Reserved[17];
|
|
117
|
+
USHORT fields_not_used_by_hidapi[10];
|
|
118
|
+
} HIDP_CAPS, *PHIDP_CAPS;
|
|
119
|
+
typedef void* PHIDP_PREPARSED_DATA;
|
|
120
|
+
#define HIDP_STATUS_SUCCESS 0x110000
|
|
121
|
+
|
|
122
|
+
typedef BOOLEAN (__stdcall *HidD_GetAttributes_)(HANDLE device, PHIDD_ATTRIBUTES attrib);
|
|
123
|
+
typedef BOOLEAN (__stdcall *HidD_GetSerialNumberString_)(HANDLE device, PVOID buffer, ULONG buffer_len);
|
|
124
|
+
typedef BOOLEAN (__stdcall *HidD_GetManufacturerString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
|
|
125
|
+
typedef BOOLEAN (__stdcall *HidD_GetProductString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
|
|
126
|
+
typedef BOOLEAN (__stdcall *HidD_SetFeature_)(HANDLE handle, PVOID data, ULONG length);
|
|
127
|
+
typedef BOOLEAN (__stdcall *HidD_GetFeature_)(HANDLE handle, PVOID data, ULONG length);
|
|
128
|
+
typedef BOOLEAN (__stdcall *HidD_GetIndexedString_)(HANDLE handle, ULONG string_index, PVOID buffer, ULONG buffer_len);
|
|
129
|
+
typedef BOOLEAN (__stdcall *HidD_GetPreparsedData_)(HANDLE handle, PHIDP_PREPARSED_DATA *preparsed_data);
|
|
130
|
+
typedef BOOLEAN (__stdcall *HidD_FreePreparsedData_)(PHIDP_PREPARSED_DATA preparsed_data);
|
|
131
|
+
typedef NTSTATUS (__stdcall *HidP_GetCaps_)(PHIDP_PREPARSED_DATA preparsed_data, HIDP_CAPS *caps);
|
|
132
|
+
typedef BOOLEAN (__stdcall *HidD_SetNumInputBuffers_)(HANDLE handle, ULONG number_buffers);
|
|
133
|
+
typedef BOOLEAN(__stdcall *HidD_SetOutputReport_ )(HANDLE handle, PVOID buffer, ULONG buffer_len);
|
|
134
|
+
static HidD_GetAttributes_ HidD_GetAttributes;
|
|
135
|
+
static HidD_GetSerialNumberString_ HidD_GetSerialNumberString;
|
|
136
|
+
static HidD_GetManufacturerString_ HidD_GetManufacturerString;
|
|
137
|
+
static HidD_GetProductString_ HidD_GetProductString;
|
|
138
|
+
static HidD_SetFeature_ HidD_SetFeature;
|
|
139
|
+
static HidD_GetFeature_ HidD_GetFeature;
|
|
140
|
+
static HidD_GetIndexedString_ HidD_GetIndexedString;
|
|
141
|
+
static HidD_GetPreparsedData_ HidD_GetPreparsedData;
|
|
142
|
+
static HidD_FreePreparsedData_ HidD_FreePreparsedData;
|
|
143
|
+
static HidP_GetCaps_ HidP_GetCaps;
|
|
144
|
+
static HidD_SetNumInputBuffers_ HidD_SetNumInputBuffers;
|
|
145
|
+
static HidD_SetOutputReport_ HidD_SetOutputReport;
|
|
146
|
+
|
|
147
|
+
static HMODULE lib_handle = NULL;
|
|
148
|
+
static BOOLEAN initialized = FALSE;
|
|
149
|
+
#endif /* HIDAPI_USE_DDK */
|
|
150
|
+
|
|
151
|
+
struct hid_device_ {
|
|
152
|
+
HANDLE device_handle;
|
|
153
|
+
BOOL blocking;
|
|
154
|
+
USHORT output_report_length;
|
|
155
|
+
size_t input_report_length;
|
|
156
|
+
void *last_error_str;
|
|
157
|
+
DWORD last_error_num;
|
|
158
|
+
BOOL read_pending;
|
|
159
|
+
char *read_buf;
|
|
160
|
+
OVERLAPPED ol;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
static hid_device *new_hid_device()
|
|
164
|
+
{
|
|
165
|
+
hid_device *dev = (hid_device*) calloc(1, sizeof(hid_device));
|
|
166
|
+
dev->device_handle = INVALID_HANDLE_VALUE;
|
|
167
|
+
dev->blocking = TRUE;
|
|
168
|
+
dev->output_report_length = 0;
|
|
169
|
+
dev->input_report_length = 0;
|
|
170
|
+
dev->last_error_str = NULL;
|
|
171
|
+
dev->last_error_num = 0;
|
|
172
|
+
dev->read_pending = FALSE;
|
|
173
|
+
dev->read_buf = NULL;
|
|
174
|
+
memset(&dev->ol, 0, sizeof(dev->ol));
|
|
175
|
+
dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL);
|
|
176
|
+
|
|
177
|
+
return dev;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
static void free_hid_device(hid_device *dev)
|
|
181
|
+
{
|
|
182
|
+
CloseHandle(dev->ol.hEvent);
|
|
183
|
+
CloseHandle(dev->device_handle);
|
|
184
|
+
LocalFree(dev->last_error_str);
|
|
185
|
+
free(dev->read_buf);
|
|
186
|
+
free(dev);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static void register_error(hid_device *device, const char *op)
|
|
190
|
+
{
|
|
191
|
+
WCHAR *ptr, *msg;
|
|
192
|
+
|
|
193
|
+
DWORD count = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
|
194
|
+
FORMAT_MESSAGE_FROM_SYSTEM |
|
|
195
|
+
FORMAT_MESSAGE_IGNORE_INSERTS,
|
|
196
|
+
NULL,
|
|
197
|
+
GetLastError(),
|
|
198
|
+
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
|
199
|
+
(LPWSTR)&msg, 0/*sz*/,
|
|
200
|
+
NULL);
|
|
201
|
+
if (!count)
|
|
202
|
+
return;
|
|
203
|
+
|
|
204
|
+
/* Get rid of the CR and LF that FormatMessage() sticks at the
|
|
205
|
+
end of the message. Thanks Microsoft! */
|
|
206
|
+
ptr = msg;
|
|
207
|
+
while (*ptr) {
|
|
208
|
+
if (*ptr == '\r') {
|
|
209
|
+
*ptr = 0x0000;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
ptr++;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Store the message off in the Device entry so that
|
|
216
|
+
the hid_error() function can pick it up. */
|
|
217
|
+
LocalFree(device->last_error_str);
|
|
218
|
+
device->last_error_str = msg;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
#ifndef HIDAPI_USE_DDK
|
|
222
|
+
static int lookup_functions()
|
|
223
|
+
{
|
|
224
|
+
lib_handle = LoadLibraryA("hid.dll");
|
|
225
|
+
if (lib_handle) {
|
|
226
|
+
#define RESOLVE(x) x = (x##_)GetProcAddress(lib_handle, #x); if (!x) return -1;
|
|
227
|
+
RESOLVE(HidD_GetAttributes);
|
|
228
|
+
RESOLVE(HidD_GetSerialNumberString);
|
|
229
|
+
RESOLVE(HidD_GetManufacturerString);
|
|
230
|
+
RESOLVE(HidD_GetProductString);
|
|
231
|
+
RESOLVE(HidD_SetFeature);
|
|
232
|
+
RESOLVE(HidD_GetFeature);
|
|
233
|
+
RESOLVE(HidD_GetIndexedString);
|
|
234
|
+
RESOLVE(HidD_GetPreparsedData);
|
|
235
|
+
RESOLVE(HidD_FreePreparsedData);
|
|
236
|
+
RESOLVE(HidP_GetCaps);
|
|
237
|
+
RESOLVE(HidD_SetNumInputBuffers);
|
|
238
|
+
RESOLVE(HidD_SetOutputReport);
|
|
239
|
+
#undef RESOLVE
|
|
240
|
+
}
|
|
241
|
+
else
|
|
242
|
+
return -1;
|
|
243
|
+
|
|
244
|
+
return 0;
|
|
245
|
+
}
|
|
246
|
+
#endif
|
|
247
|
+
|
|
248
|
+
static HANDLE open_device(const char *path, BOOL enumerate, BOOL bExclusive )
|
|
249
|
+
{
|
|
250
|
+
HANDLE handle;
|
|
251
|
+
// Opening with access 0 causes keyboards to stop responding in some system configurations
|
|
252
|
+
// http://steamcommunity.com/discussions/forum/1/1843493219428923893
|
|
253
|
+
// Thanks to co-wie (Ka-wei Low <kawei@mac.com>) for help narrowing down the problem on his system
|
|
254
|
+
//DWORD desired_access = (enumerate)? 0: (GENERIC_WRITE | GENERIC_READ);
|
|
255
|
+
DWORD desired_access = ( GENERIC_WRITE | GENERIC_READ );
|
|
256
|
+
DWORD share_mode = bExclusive ? 0 : ( FILE_SHARE_READ | FILE_SHARE_WRITE );
|
|
257
|
+
|
|
258
|
+
handle = CreateFileA(path,
|
|
259
|
+
desired_access,
|
|
260
|
+
share_mode,
|
|
261
|
+
NULL,
|
|
262
|
+
OPEN_EXISTING,
|
|
263
|
+
FILE_FLAG_OVERLAPPED,/*FILE_ATTRIBUTE_NORMAL,*/
|
|
264
|
+
0);
|
|
265
|
+
|
|
266
|
+
return handle;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
int HID_API_EXPORT hid_init(void)
|
|
270
|
+
{
|
|
271
|
+
#ifndef HIDAPI_USE_DDK
|
|
272
|
+
if (!initialized) {
|
|
273
|
+
if (lookup_functions() < 0) {
|
|
274
|
+
hid_exit();
|
|
275
|
+
return -1;
|
|
276
|
+
}
|
|
277
|
+
initialized = TRUE;
|
|
278
|
+
}
|
|
279
|
+
#endif
|
|
280
|
+
return 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
int HID_API_EXPORT hid_exit(void)
|
|
284
|
+
{
|
|
285
|
+
#ifndef HIDAPI_USE_DDK
|
|
286
|
+
if (lib_handle)
|
|
287
|
+
FreeLibrary(lib_handle);
|
|
288
|
+
lib_handle = NULL;
|
|
289
|
+
initialized = FALSE;
|
|
290
|
+
#endif
|
|
291
|
+
return 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id)
|
|
295
|
+
{
|
|
296
|
+
BOOL res;
|
|
297
|
+
struct hid_device_info *root = NULL; /* return object */
|
|
298
|
+
struct hid_device_info *cur_dev = NULL;
|
|
299
|
+
|
|
300
|
+
/* Windows objects for interacting with the driver. */
|
|
301
|
+
GUID InterfaceClassGuid = {0x4d1e55b2, 0xf16f, 0x11cf, {0x88, 0xcb, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30} };
|
|
302
|
+
SP_DEVINFO_DATA devinfo_data;
|
|
303
|
+
SP_DEVICE_INTERFACE_DATA device_interface_data;
|
|
304
|
+
SP_DEVICE_INTERFACE_DETAIL_DATA_A *device_interface_detail_data = NULL;
|
|
305
|
+
HDEVINFO device_info_set = INVALID_HANDLE_VALUE;
|
|
306
|
+
int device_index = 0;
|
|
307
|
+
int i;
|
|
308
|
+
|
|
309
|
+
if (hid_init() < 0)
|
|
310
|
+
return NULL;
|
|
311
|
+
|
|
312
|
+
/* Initialize the Windows objects. */
|
|
313
|
+
memset(&devinfo_data, 0x0, sizeof(devinfo_data));
|
|
314
|
+
devinfo_data.cbSize = sizeof(SP_DEVINFO_DATA);
|
|
315
|
+
device_interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
|
|
316
|
+
|
|
317
|
+
/* Get information for all the devices belonging to the HID class. */
|
|
318
|
+
device_info_set = SetupDiGetClassDevsA(&InterfaceClassGuid, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
|
|
319
|
+
|
|
320
|
+
/* Iterate over each device in the HID class, looking for the right one. */
|
|
321
|
+
|
|
322
|
+
for (;;) {
|
|
323
|
+
HANDLE write_handle = INVALID_HANDLE_VALUE;
|
|
324
|
+
DWORD required_size = 0;
|
|
325
|
+
HIDD_ATTRIBUTES attrib;
|
|
326
|
+
|
|
327
|
+
res = SetupDiEnumDeviceInterfaces(device_info_set,
|
|
328
|
+
NULL,
|
|
329
|
+
&InterfaceClassGuid,
|
|
330
|
+
device_index,
|
|
331
|
+
&device_interface_data);
|
|
332
|
+
|
|
333
|
+
if (!res) {
|
|
334
|
+
/* A return of FALSE from this function means that
|
|
335
|
+
there are no more devices. */
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* Call with 0-sized detail size, and let the function
|
|
340
|
+
tell us how long the detail struct needs to be. The
|
|
341
|
+
size is put in &required_size. */
|
|
342
|
+
res = SetupDiGetDeviceInterfaceDetailA(device_info_set,
|
|
343
|
+
&device_interface_data,
|
|
344
|
+
NULL,
|
|
345
|
+
0,
|
|
346
|
+
&required_size,
|
|
347
|
+
NULL);
|
|
348
|
+
|
|
349
|
+
/* Allocate a long enough structure for device_interface_detail_data. */
|
|
350
|
+
device_interface_detail_data = (SP_DEVICE_INTERFACE_DETAIL_DATA_A*) malloc(required_size);
|
|
351
|
+
device_interface_detail_data->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_A);
|
|
352
|
+
|
|
353
|
+
/* Get the detailed data for this device. The detail data gives us
|
|
354
|
+
the device path for this device, which is then passed into
|
|
355
|
+
CreateFile() to get a handle to the device. */
|
|
356
|
+
res = SetupDiGetDeviceInterfaceDetailA(device_info_set,
|
|
357
|
+
&device_interface_data,
|
|
358
|
+
device_interface_detail_data,
|
|
359
|
+
required_size,
|
|
360
|
+
NULL,
|
|
361
|
+
NULL);
|
|
362
|
+
|
|
363
|
+
if (!res) {
|
|
364
|
+
/* register_error(dev, "Unable to call SetupDiGetDeviceInterfaceDetail");
|
|
365
|
+
Continue to the next device. */
|
|
366
|
+
goto cont;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* Make sure this device is of Setup Class "HIDClass" and has a
|
|
370
|
+
driver bound to it. */
|
|
371
|
+
for (i = 0; ; i++) {
|
|
372
|
+
char driver_name[256];
|
|
373
|
+
|
|
374
|
+
/* Populate devinfo_data. This function will return failure
|
|
375
|
+
when there are no more interfaces left. */
|
|
376
|
+
res = SetupDiEnumDeviceInfo(device_info_set, i, &devinfo_data);
|
|
377
|
+
if (!res)
|
|
378
|
+
goto cont;
|
|
379
|
+
|
|
380
|
+
res = SetupDiGetDeviceRegistryPropertyA(device_info_set, &devinfo_data,
|
|
381
|
+
SPDRP_CLASS, NULL, (PBYTE)driver_name, sizeof(driver_name), NULL);
|
|
382
|
+
if (!res)
|
|
383
|
+
goto cont;
|
|
384
|
+
|
|
385
|
+
if (strcmp(driver_name, "HIDClass") == 0) {
|
|
386
|
+
/* See if there's a driver bound. */
|
|
387
|
+
res = SetupDiGetDeviceRegistryPropertyA(device_info_set, &devinfo_data,
|
|
388
|
+
SPDRP_DRIVER, NULL, (PBYTE)driver_name, sizeof(driver_name), NULL);
|
|
389
|
+
if (res)
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
//wprintf(L"HandleName: %s\n", device_interface_detail_data->DevicePath);
|
|
395
|
+
|
|
396
|
+
/* Open a handle to the device */
|
|
397
|
+
write_handle = open_device(device_interface_detail_data->DevicePath, TRUE, FALSE);
|
|
398
|
+
|
|
399
|
+
/* Check validity of write_handle. */
|
|
400
|
+
if (write_handle == INVALID_HANDLE_VALUE) {
|
|
401
|
+
/* Unable to open the device. */
|
|
402
|
+
//register_error(dev, "CreateFile");
|
|
403
|
+
goto cont_close;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/* Get the Vendor ID and Product ID for this device. */
|
|
408
|
+
attrib.Size = sizeof(HIDD_ATTRIBUTES);
|
|
409
|
+
HidD_GetAttributes(write_handle, &attrib);
|
|
410
|
+
//wprintf(L"Product/Vendor: %x %x\n", attrib.ProductID, attrib.VendorID);
|
|
411
|
+
|
|
412
|
+
/* Check the VID/PID to see if we should add this
|
|
413
|
+
device to the enumeration list. */
|
|
414
|
+
if ((vendor_id == 0x0 || attrib.VendorID == vendor_id) &&
|
|
415
|
+
(product_id == 0x0 || attrib.ProductID == product_id)) {
|
|
416
|
+
|
|
417
|
+
#define WSTR_LEN 512
|
|
418
|
+
const char *str;
|
|
419
|
+
struct hid_device_info *tmp;
|
|
420
|
+
PHIDP_PREPARSED_DATA pp_data = NULL;
|
|
421
|
+
HIDP_CAPS caps;
|
|
422
|
+
BOOLEAN hidp_res;
|
|
423
|
+
NTSTATUS nt_res;
|
|
424
|
+
wchar_t wstr[WSTR_LEN]; /* TODO: Determine Size */
|
|
425
|
+
size_t len;
|
|
426
|
+
|
|
427
|
+
/* VID/PID match. Create the record. */
|
|
428
|
+
tmp = (struct hid_device_info*) calloc(1, sizeof(struct hid_device_info));
|
|
429
|
+
if (cur_dev) {
|
|
430
|
+
cur_dev->next = tmp;
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
root = tmp;
|
|
434
|
+
}
|
|
435
|
+
cur_dev = tmp;
|
|
436
|
+
|
|
437
|
+
/* Get the Usage Page and Usage for this device. */
|
|
438
|
+
hidp_res = HidD_GetPreparsedData(write_handle, &pp_data);
|
|
439
|
+
if (hidp_res) {
|
|
440
|
+
nt_res = HidP_GetCaps(pp_data, &caps);
|
|
441
|
+
if (nt_res == HIDP_STATUS_SUCCESS) {
|
|
442
|
+
cur_dev->usage_page = caps.UsagePage;
|
|
443
|
+
cur_dev->usage = caps.Usage;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
HidD_FreePreparsedData(pp_data);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* Fill out the record */
|
|
450
|
+
cur_dev->next = NULL;
|
|
451
|
+
str = device_interface_detail_data->DevicePath;
|
|
452
|
+
if (str) {
|
|
453
|
+
len = strlen(str);
|
|
454
|
+
cur_dev->path = (char*) calloc(len+1, sizeof(char));
|
|
455
|
+
strncpy(cur_dev->path, str, len+1);
|
|
456
|
+
cur_dev->path[len] = '\0';
|
|
457
|
+
}
|
|
458
|
+
else
|
|
459
|
+
cur_dev->path = NULL;
|
|
460
|
+
|
|
461
|
+
/* Serial Number */
|
|
462
|
+
hidp_res = HidD_GetSerialNumberString(write_handle, wstr, sizeof(wstr));
|
|
463
|
+
wstr[WSTR_LEN-1] = 0x0000;
|
|
464
|
+
if (hidp_res) {
|
|
465
|
+
cur_dev->serial_number = _wcsdup(wstr);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* Manufacturer String */
|
|
469
|
+
hidp_res = HidD_GetManufacturerString(write_handle, wstr, sizeof(wstr));
|
|
470
|
+
wstr[WSTR_LEN-1] = 0x0000;
|
|
471
|
+
if (hidp_res) {
|
|
472
|
+
cur_dev->manufacturer_string = _wcsdup(wstr);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Product String */
|
|
476
|
+
hidp_res = HidD_GetProductString(write_handle, wstr, sizeof(wstr));
|
|
477
|
+
wstr[WSTR_LEN-1] = 0x0000;
|
|
478
|
+
if (hidp_res) {
|
|
479
|
+
cur_dev->product_string = _wcsdup(wstr);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* VID/PID */
|
|
483
|
+
cur_dev->vendor_id = attrib.VendorID;
|
|
484
|
+
cur_dev->product_id = attrib.ProductID;
|
|
485
|
+
|
|
486
|
+
/* Release Number */
|
|
487
|
+
cur_dev->release_number = attrib.VersionNumber;
|
|
488
|
+
|
|
489
|
+
/* Interface Number. It can sometimes be parsed out of the path
|
|
490
|
+
on Windows if a device has multiple interfaces. See
|
|
491
|
+
http://msdn.microsoft.com/en-us/windows/hardware/gg487473 or
|
|
492
|
+
search for "Hardware IDs for HID Devices" at MSDN. If it's not
|
|
493
|
+
in the path, it's set to -1. */
|
|
494
|
+
cur_dev->interface_number = -1;
|
|
495
|
+
if (cur_dev->path) {
|
|
496
|
+
char *interface_component = strstr(cur_dev->path, "&mi_");
|
|
497
|
+
if (interface_component) {
|
|
498
|
+
char *hex_str = interface_component + 4;
|
|
499
|
+
char *endptr = NULL;
|
|
500
|
+
cur_dev->interface_number = strtol(hex_str, &endptr, 16);
|
|
501
|
+
if (endptr == hex_str) {
|
|
502
|
+
/* The parsing failed. Set interface_number to -1. */
|
|
503
|
+
cur_dev->interface_number = -1;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
cont_close:
|
|
510
|
+
CloseHandle(write_handle);
|
|
511
|
+
cont:
|
|
512
|
+
/* We no longer need the detail data. It can be freed */
|
|
513
|
+
free(device_interface_detail_data);
|
|
514
|
+
|
|
515
|
+
device_index++;
|
|
516
|
+
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/* Close the device information handle. */
|
|
520
|
+
SetupDiDestroyDeviceInfoList(device_info_set);
|
|
521
|
+
|
|
522
|
+
return root;
|
|
523
|
+
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
void HID_API_EXPORT HID_API_CALL hid_free_enumeration(struct hid_device_info *devs)
|
|
527
|
+
{
|
|
528
|
+
/* TODO: Merge this with the Linux version. This function is platform-independent. */
|
|
529
|
+
struct hid_device_info *d = devs;
|
|
530
|
+
while (d) {
|
|
531
|
+
struct hid_device_info *next = d->next;
|
|
532
|
+
free(d->path);
|
|
533
|
+
free(d->serial_number);
|
|
534
|
+
free(d->manufacturer_string);
|
|
535
|
+
free(d->product_string);
|
|
536
|
+
free(d);
|
|
537
|
+
d = next;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
|
|
543
|
+
{
|
|
544
|
+
/* TODO: Merge this functions with the Linux version. This function should be platform independent. */
|
|
545
|
+
struct hid_device_info *devs, *cur_dev;
|
|
546
|
+
const char *path_to_open = NULL;
|
|
547
|
+
hid_device *handle = NULL;
|
|
548
|
+
|
|
549
|
+
devs = hid_enumerate(vendor_id, product_id);
|
|
550
|
+
cur_dev = devs;
|
|
551
|
+
while (cur_dev) {
|
|
552
|
+
if (cur_dev->vendor_id == vendor_id &&
|
|
553
|
+
cur_dev->product_id == product_id) {
|
|
554
|
+
if (serial_number) {
|
|
555
|
+
if (wcscmp(serial_number, cur_dev->serial_number) == 0) {
|
|
556
|
+
path_to_open = cur_dev->path;
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
path_to_open = cur_dev->path;
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
cur_dev = cur_dev->next;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
if (path_to_open) {
|
|
569
|
+
/* Open the device */
|
|
570
|
+
handle = hid_open_path(path_to_open, 0);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
hid_free_enumeration(devs);
|
|
574
|
+
|
|
575
|
+
return handle;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path, int bExclusive)
|
|
579
|
+
{
|
|
580
|
+
hid_device *dev;
|
|
581
|
+
HIDP_CAPS caps;
|
|
582
|
+
PHIDP_PREPARSED_DATA pp_data = NULL;
|
|
583
|
+
BOOLEAN res;
|
|
584
|
+
NTSTATUS nt_res;
|
|
585
|
+
|
|
586
|
+
if (hid_init() < 0) {
|
|
587
|
+
return NULL;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
dev = new_hid_device();
|
|
591
|
+
|
|
592
|
+
/* Open a handle to the device */
|
|
593
|
+
dev->device_handle = open_device(path, FALSE, bExclusive);
|
|
594
|
+
|
|
595
|
+
/* Check validity of write_handle. */
|
|
596
|
+
if (dev->device_handle == INVALID_HANDLE_VALUE) {
|
|
597
|
+
/* Unable to open the device. */
|
|
598
|
+
register_error(dev, "CreateFile");
|
|
599
|
+
goto err;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/* Set the Input Report buffer size to 64 reports. */
|
|
603
|
+
res = HidD_SetNumInputBuffers(dev->device_handle, 64);
|
|
604
|
+
if (!res) {
|
|
605
|
+
register_error(dev, "HidD_SetNumInputBuffers");
|
|
606
|
+
goto err;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* Get the Input Report length for the device. */
|
|
610
|
+
res = HidD_GetPreparsedData(dev->device_handle, &pp_data);
|
|
611
|
+
if (!res) {
|
|
612
|
+
register_error(dev, "HidD_GetPreparsedData");
|
|
613
|
+
goto err;
|
|
614
|
+
}
|
|
615
|
+
nt_res = HidP_GetCaps(pp_data, &caps);
|
|
616
|
+
if (nt_res != HIDP_STATUS_SUCCESS) {
|
|
617
|
+
register_error(dev, "HidP_GetCaps");
|
|
618
|
+
goto err_pp_data;
|
|
619
|
+
}
|
|
620
|
+
dev->output_report_length = caps.OutputReportByteLength;
|
|
621
|
+
dev->input_report_length = caps.InputReportByteLength;
|
|
622
|
+
HidD_FreePreparsedData(pp_data);
|
|
623
|
+
|
|
624
|
+
dev->read_buf = (char*) malloc(dev->input_report_length);
|
|
625
|
+
|
|
626
|
+
return dev;
|
|
627
|
+
|
|
628
|
+
err_pp_data:
|
|
629
|
+
HidD_FreePreparsedData(pp_data);
|
|
630
|
+
err:
|
|
631
|
+
free_hid_device(dev);
|
|
632
|
+
return NULL;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
int HID_API_EXPORT HID_API_CALL hid_write_output_report(hid_device *dev, const unsigned char *data, size_t length)
|
|
636
|
+
{
|
|
637
|
+
BOOL res;
|
|
638
|
+
res = HidD_SetOutputReport(dev->device_handle, (void *)data, (ULONG)length);
|
|
639
|
+
if (res)
|
|
640
|
+
return (int)length;
|
|
641
|
+
else
|
|
642
|
+
return -1;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
int HID_API_EXPORT HID_API_CALL hid_write(hid_device *dev, const unsigned char *data, size_t length)
|
|
646
|
+
{
|
|
647
|
+
DWORD bytes_written;
|
|
648
|
+
BOOL res;
|
|
649
|
+
size_t stashed_length = length;
|
|
650
|
+
OVERLAPPED ol;
|
|
651
|
+
unsigned char *buf;
|
|
652
|
+
memset(&ol, 0, sizeof(ol));
|
|
653
|
+
|
|
654
|
+
/* Make sure the right number of bytes are passed to WriteFile. Windows
|
|
655
|
+
expects the number of bytes which are in the _longest_ report (plus
|
|
656
|
+
one for the report number) bytes even if the data is a report
|
|
657
|
+
which is shorter than that. Windows gives us this value in
|
|
658
|
+
caps.OutputReportByteLength. If a user passes in fewer bytes than this,
|
|
659
|
+
create a temporary buffer which is the proper size. */
|
|
660
|
+
if (length >= dev->output_report_length) {
|
|
661
|
+
/* The user passed the right number of bytes. Use the buffer as-is. */
|
|
662
|
+
buf = (unsigned char *) data;
|
|
663
|
+
} else {
|
|
664
|
+
/* Create a temporary buffer and copy the user's data
|
|
665
|
+
into it, padding the rest with zeros. */
|
|
666
|
+
buf = (unsigned char *) malloc(dev->output_report_length);
|
|
667
|
+
memcpy(buf, data, length);
|
|
668
|
+
memset(buf + length, 0, dev->output_report_length - length);
|
|
669
|
+
length = dev->output_report_length;
|
|
670
|
+
}
|
|
671
|
+
if (length > 512)
|
|
672
|
+
{
|
|
673
|
+
return hid_write_output_report( dev, data, stashed_length );
|
|
674
|
+
}
|
|
675
|
+
else
|
|
676
|
+
{
|
|
677
|
+
res = WriteFile( dev->device_handle, buf, ( DWORD ) length, NULL, &ol );
|
|
678
|
+
if (!res) {
|
|
679
|
+
if (GetLastError() != ERROR_IO_PENDING) {
|
|
680
|
+
/* WriteFile() failed. Return error. */
|
|
681
|
+
register_error(dev, "WriteFile");
|
|
682
|
+
bytes_written = (DWORD) -1;
|
|
683
|
+
goto end_of_function;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* Wait here until the write is done. This makes
|
|
688
|
+
hid_write() synchronous. */
|
|
689
|
+
res = GetOverlappedResult(dev->device_handle, &ol, &bytes_written, TRUE/*wait*/);
|
|
690
|
+
if (!res) {
|
|
691
|
+
/* The Write operation failed. */
|
|
692
|
+
register_error(dev, "WriteFile");
|
|
693
|
+
bytes_written = (DWORD) -1;
|
|
694
|
+
goto end_of_function;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
end_of_function:
|
|
698
|
+
if (buf != data)
|
|
699
|
+
free(buf);
|
|
700
|
+
|
|
701
|
+
return bytes_written;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char *data, size_t length, int milliseconds)
|
|
706
|
+
{
|
|
707
|
+
DWORD bytes_read = 0;
|
|
708
|
+
size_t copy_len = 0;
|
|
709
|
+
BOOL res;
|
|
710
|
+
|
|
711
|
+
/* Copy the handle for convenience. */
|
|
712
|
+
HANDLE ev = dev->ol.hEvent;
|
|
713
|
+
|
|
714
|
+
if (!dev->read_pending) {
|
|
715
|
+
/* Start an Overlapped I/O read. */
|
|
716
|
+
dev->read_pending = TRUE;
|
|
717
|
+
memset(dev->read_buf, 0, dev->input_report_length);
|
|
718
|
+
ResetEvent(ev);
|
|
719
|
+
res = ReadFile(dev->device_handle, dev->read_buf, (DWORD)dev->input_report_length, &bytes_read, &dev->ol);
|
|
720
|
+
|
|
721
|
+
if (!res) {
|
|
722
|
+
if (GetLastError() != ERROR_IO_PENDING) {
|
|
723
|
+
/* ReadFile() has failed.
|
|
724
|
+
Clean up and return error. */
|
|
725
|
+
CancelIo(dev->device_handle);
|
|
726
|
+
dev->read_pending = FALSE;
|
|
727
|
+
goto end_of_function;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (milliseconds >= 0) {
|
|
733
|
+
/* See if there is any data yet. */
|
|
734
|
+
res = WaitForSingleObject(ev, milliseconds);
|
|
735
|
+
if (res != WAIT_OBJECT_0) {
|
|
736
|
+
/* There was no data this time. Return zero bytes available,
|
|
737
|
+
but leave the Overlapped I/O running. */
|
|
738
|
+
return 0;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/* Either WaitForSingleObject() told us that ReadFile has completed, or
|
|
743
|
+
we are in non-blocking mode. Get the number of bytes read. The actual
|
|
744
|
+
data has been copied to the data[] array which was passed to ReadFile(). */
|
|
745
|
+
res = GetOverlappedResult(dev->device_handle, &dev->ol, &bytes_read, TRUE/*wait*/);
|
|
746
|
+
|
|
747
|
+
/* Set pending back to false, even if GetOverlappedResult() returned error. */
|
|
748
|
+
dev->read_pending = FALSE;
|
|
749
|
+
|
|
750
|
+
if (res && bytes_read > 0) {
|
|
751
|
+
if (dev->read_buf[0] == 0x0) {
|
|
752
|
+
/* If report numbers aren't being used, but Windows sticks a report
|
|
753
|
+
number (0x0) on the beginning of the report anyway. To make this
|
|
754
|
+
work like the other platforms, and to make it work more like the
|
|
755
|
+
HID spec, we'll skip over this byte. */
|
|
756
|
+
bytes_read--;
|
|
757
|
+
copy_len = length > bytes_read ? bytes_read : length;
|
|
758
|
+
memcpy(data, dev->read_buf+1, copy_len);
|
|
759
|
+
}
|
|
760
|
+
else {
|
|
761
|
+
/* Copy the whole buffer, report number and all. */
|
|
762
|
+
copy_len = length > bytes_read ? bytes_read : length;
|
|
763
|
+
memcpy(data, dev->read_buf, copy_len);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
end_of_function:
|
|
768
|
+
if (!res) {
|
|
769
|
+
register_error(dev, "GetOverlappedResult");
|
|
770
|
+
return -1;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
return (int)copy_len;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
int HID_API_EXPORT HID_API_CALL hid_read(hid_device *dev, unsigned char *data, size_t length)
|
|
777
|
+
{
|
|
778
|
+
return hid_read_timeout(dev, data, length, (dev->blocking)? -1: 0);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *dev, int nonblock)
|
|
782
|
+
{
|
|
783
|
+
dev->blocking = !nonblock;
|
|
784
|
+
return 0; /* Success */
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *dev, const unsigned char *data, size_t length)
|
|
788
|
+
{
|
|
789
|
+
BOOL res = HidD_SetFeature(dev->device_handle, (PVOID)data, (ULONG)length);
|
|
790
|
+
if (!res) {
|
|
791
|
+
register_error(dev, "HidD_SetFeature");
|
|
792
|
+
return -1;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
return (int)length;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *dev, unsigned char *data, size_t length)
|
|
800
|
+
{
|
|
801
|
+
BOOL res;
|
|
802
|
+
#if 0
|
|
803
|
+
res = HidD_GetFeature(dev->device_handle, (PVOID)data, (ULONG)length);
|
|
804
|
+
if (!res) {
|
|
805
|
+
register_error(dev, "HidD_GetFeature");
|
|
806
|
+
return -1;
|
|
807
|
+
}
|
|
808
|
+
return 0; /* HidD_GetFeature() doesn't give us an actual length, unfortunately */
|
|
809
|
+
#else
|
|
810
|
+
DWORD bytes_returned;
|
|
811
|
+
|
|
812
|
+
OVERLAPPED ol;
|
|
813
|
+
memset(&ol, 0, sizeof(ol));
|
|
814
|
+
|
|
815
|
+
res = DeviceIoControl(dev->device_handle,
|
|
816
|
+
IOCTL_HID_GET_FEATURE,
|
|
817
|
+
data, (DWORD)length,
|
|
818
|
+
data, (DWORD)length,
|
|
819
|
+
&bytes_returned, &ol);
|
|
820
|
+
|
|
821
|
+
if (!res) {
|
|
822
|
+
if (GetLastError() != ERROR_IO_PENDING) {
|
|
823
|
+
/* DeviceIoControl() failed. Return error. */
|
|
824
|
+
register_error(dev, "Send Feature Report DeviceIoControl");
|
|
825
|
+
return -1;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* Wait here until the write is done. This makes
|
|
830
|
+
hid_get_feature_report() synchronous. */
|
|
831
|
+
res = GetOverlappedResult(dev->device_handle, &ol, &bytes_returned, TRUE/*wait*/);
|
|
832
|
+
if (!res) {
|
|
833
|
+
/* The operation failed. */
|
|
834
|
+
register_error(dev, "Send Feature Report GetOverLappedResult");
|
|
835
|
+
return -1;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/* bytes_returned does not include the first byte which contains the
|
|
839
|
+
report ID. The data buffer actually contains one more byte than
|
|
840
|
+
bytes_returned. */
|
|
841
|
+
bytes_returned++;
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
return bytes_returned;
|
|
845
|
+
#endif
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
void HID_API_EXPORT HID_API_CALL hid_close(hid_device *dev)
|
|
849
|
+
{
|
|
850
|
+
if (!dev)
|
|
851
|
+
return;
|
|
852
|
+
CancelIo(dev->device_handle);
|
|
853
|
+
free_hid_device(dev);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
int HID_API_EXPORT_CALL HID_API_CALL hid_get_manufacturer_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
|
857
|
+
{
|
|
858
|
+
BOOL res;
|
|
859
|
+
|
|
860
|
+
res = HidD_GetManufacturerString(dev->device_handle, string, (ULONG)(sizeof(wchar_t) * MIN(maxlen, MAX_STRING_WCHARS)));
|
|
861
|
+
if (!res) {
|
|
862
|
+
register_error(dev, "HidD_GetManufacturerString");
|
|
863
|
+
return -1;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
return 0;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
int HID_API_EXPORT_CALL HID_API_CALL hid_get_product_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
|
870
|
+
{
|
|
871
|
+
BOOL res;
|
|
872
|
+
|
|
873
|
+
res = HidD_GetProductString(dev->device_handle, string, (ULONG)(sizeof(wchar_t) * MIN(maxlen, MAX_STRING_WCHARS)));
|
|
874
|
+
if (!res) {
|
|
875
|
+
register_error(dev, "HidD_GetProductString");
|
|
876
|
+
return -1;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
return 0;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
int HID_API_EXPORT_CALL HID_API_CALL hid_get_serial_number_string(hid_device *dev, wchar_t *string, size_t maxlen)
|
|
883
|
+
{
|
|
884
|
+
BOOL res;
|
|
885
|
+
|
|
886
|
+
res = HidD_GetSerialNumberString(dev->device_handle, string, (ULONG)(sizeof(wchar_t) * MIN(maxlen, MAX_STRING_WCHARS)));
|
|
887
|
+
if (!res) {
|
|
888
|
+
register_error(dev, "HidD_GetSerialNumberString");
|
|
889
|
+
return -1;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
return 0;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
int HID_API_EXPORT_CALL HID_API_CALL hid_get_indexed_string(hid_device *dev, int string_index, wchar_t *string, size_t maxlen)
|
|
896
|
+
{
|
|
897
|
+
BOOL res;
|
|
898
|
+
|
|
899
|
+
res = HidD_GetIndexedString(dev->device_handle, string_index, string, (ULONG)(sizeof(wchar_t) * MIN(maxlen, MAX_STRING_WCHARS)));
|
|
900
|
+
if (!res) {
|
|
901
|
+
register_error(dev, "HidD_GetIndexedString");
|
|
902
|
+
return -1;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
return 0;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
|
|
910
|
+
{
|
|
911
|
+
return (wchar_t*)dev->last_error_str;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
/*#define PICPGM*/
|
|
916
|
+
/*#define S11*/
|
|
917
|
+
#define P32
|
|
918
|
+
#ifdef S11
|
|
919
|
+
unsigned short VendorID = 0xa0a0;
|
|
920
|
+
unsigned short ProductID = 0x0001;
|
|
921
|
+
#endif
|
|
922
|
+
|
|
923
|
+
#ifdef P32
|
|
924
|
+
unsigned short VendorID = 0x04d8;
|
|
925
|
+
unsigned short ProductID = 0x3f;
|
|
926
|
+
#endif
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
#ifdef PICPGM
|
|
930
|
+
unsigned short VendorID = 0x04d8;
|
|
931
|
+
unsigned short ProductID = 0x0033;
|
|
932
|
+
#endif
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
#if 0
|
|
936
|
+
int __cdecl main(int argc, char* argv[])
|
|
937
|
+
{
|
|
938
|
+
int res;
|
|
939
|
+
unsigned char buf[65];
|
|
940
|
+
|
|
941
|
+
UNREFERENCED_PARAMETER(argc);
|
|
942
|
+
UNREFERENCED_PARAMETER(argv);
|
|
943
|
+
|
|
944
|
+
/* Set up the command buffer. */
|
|
945
|
+
memset(buf,0x00,sizeof(buf));
|
|
946
|
+
buf[0] = 0;
|
|
947
|
+
buf[1] = 0x81;
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
/* Open the device. */
|
|
951
|
+
int handle = open(VendorID, ProductID, L"12345");
|
|
952
|
+
if (handle < 0)
|
|
953
|
+
printf("unable to open device\n");
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
/* Toggle LED (cmd 0x80) */
|
|
957
|
+
buf[1] = 0x80;
|
|
958
|
+
res = write(handle, buf, 65);
|
|
959
|
+
if (res < 0)
|
|
960
|
+
printf("Unable to write()\n");
|
|
961
|
+
|
|
962
|
+
/* Request state (cmd 0x81) */
|
|
963
|
+
buf[1] = 0x81;
|
|
964
|
+
write(handle, buf, 65);
|
|
965
|
+
if (res < 0)
|
|
966
|
+
printf("Unable to write() (2)\n");
|
|
967
|
+
|
|
968
|
+
/* Read requested state */
|
|
969
|
+
read(handle, buf, 65);
|
|
970
|
+
if (res < 0)
|
|
971
|
+
printf("Unable to read()\n");
|
|
972
|
+
|
|
973
|
+
/* Print out the returned buffer. */
|
|
974
|
+
for (int i = 0; i < 4; i++)
|
|
975
|
+
printf("buf[%d]: %d\n", i, buf[i]);
|
|
976
|
+
|
|
977
|
+
return 0;
|
|
978
|
+
}
|
|
979
|
+
#endif
|
|
980
|
+
|
|
981
|
+
#ifdef __cplusplus
|
|
982
|
+
} /* extern "C" */
|
|
983
|
+
#endif
|