SDL/test
Aubrey Hesselgren 913b611ccd
Added tools for evaluating gyroscope accuracy and IMU polling rates. (#13209)
* Added tools to Test Controller for evaluating gyroscope accuracy and IMU polling rates.

This adds a visual suite to the testcontroller tool to help validate IMU data from new gamepad drivers and HID implementations.

The 3D gizmo renders accumulated rotation using quaternion integration of gyroscope packets. If a controller is rotated 90° in real space, the gizmo should reflect a 90° change, allowing quick detection of incorrect sensitivity or misaligned axes.

Also includes:
- Euler angle readout (pitch, yaw, roll)
- Real-time drift calibration display with noise gating and progress
- Accelerometer vector overlay
- Live polling rate estimation to verify update frequency

Intended for developers working on controller firmware or SDL backend support to confirm correctness of IMU data processing.
2025-06-13 14:01:52 -07:00
..
android android: reduce visiblity as much as possible 2025-03-19 23:36:08 +01:00
emscripten
n3ds
testgpu
win32
CMakeLists.txt Restore support for the Nokia N-Gage (#12148) 2025-05-22 11:07:22 -07:00
COPYING
LICENSE.txt
audiofile.bmp
build-shaders.sh Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
checkkeys.c
childprocess.c [Process API] Quoting enhancements (#12946) 2025-05-12 09:17:21 -07:00
gamepad_axis.bmp
gamepad_axis.h
gamepad_axis_arrow.bmp
gamepad_axis_arrow.h
gamepad_back.bmp
gamepad_back.h
gamepad_battery.bmp
gamepad_battery.h
gamepad_battery_unknown.bmp
gamepad_battery_unknown.h
gamepad_battery_wired.bmp
gamepad_battery_wired.h
gamepad_button.bmp
gamepad_button.h
gamepad_button_background.bmp
gamepad_button_background.h
gamepad_button_small.bmp
gamepad_button_small.h
gamepad_face_abxy.bmp
gamepad_face_abxy.h
gamepad_face_axby.bmp Added SDL_GAMEPAD_TYPE_GAMECUBE 2025-04-27 11:01:50 -07:00
gamepad_face_axby.h Added SDL_GAMEPAD_TYPE_GAMECUBE 2025-04-27 11:01:50 -07:00
gamepad_face_bayx.bmp
gamepad_face_bayx.h
gamepad_face_sony.bmp
gamepad_face_sony.h
gamepad_front.bmp
gamepad_front.h
gamepad_touchpad.bmp
gamepad_touchpad.h
gamepad_wired.bmp
gamepad_wired.h
gamepad_wireless.bmp
gamepad_wireless.h
gamepadutils.c Added tools for evaluating gyroscope accuracy and IMU polling rates. (#13209) 2025-06-13 14:01:52 -07:00
gamepadutils.h Added tools for evaluating gyroscope accuracy and IMU polling rates. (#13209) 2025-06-13 14:01:52 -07:00
glass.bmp
glass.h
icon.bmp
icon.h
icon2x.bmp
logaudiodev.bmp
loopwave.c
main.cpp
moose.dat
msdf_font.bmp test/msdf_font.bmp: mark as non-executable. 2025-04-26 02:39:20 +03:00
msdf_font.csv windows: Fix stale zoom/iconic state in WM_WINDOWPOSCHANGED handler 2025-04-25 16:21:44 -07:00
physaudiodev.bmp
picture.xbm
pretest.c
relative_mode.markdown
sample.bmp
sample.wav
sdl-test_round.bmp
soundboard.bmp
soundboard_levels.bmp
speaker.bmp
sword.wav
template.test.in
testasyncio.c
testatomic.c
testaudio.c testaudio: Use SDL_SetAppMetadata at startup. 2025-04-25 13:03:09 -04:00
testaudiohotplug.c
testaudioinfo.c
testaudiorecording.c
testaudiostreamdynamicresample.c
testautomation.c
testautomation_audio.c
testautomation_blit.c
testautomation_clipboard.c
testautomation_events.c
testautomation_guid.c
testautomation_hints.c tests: port failing SDL_Hint tests from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testautomation_images.c
testautomation_images.h
testautomation_intrinsics.c
testautomation_iostream.c
testautomation_joystick.c Added the gamepad hint SDL_GAMECONTROLLER_USE_GAMECUBE_LABELS 2025-05-01 10:54:16 -07:00
testautomation_keyboard.c
testautomation_log.c
testautomation_main.c
testautomation_math.c
testautomation_mouse.c
testautomation_pixels.c
testautomation_platform.c
testautomation_properties.c
testautomation_rect.c tests: port failing SDL_Rect tests from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testautomation_render.c tests: port failing SDL_Renderer test from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testautomation_sdltest.c
testautomation_stdlib.c
testautomation_subsystems.c
testautomation_suites.h
testautomation_surface.c Added tests to cover invalid surface blits 2025-04-22 13:05:38 -07:00
testautomation_time.c
testautomation_timer.c
testautomation_video.c tests: port failing window test from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testbounds.c
testcamera.c
testclipboard.c
testcolorspace.c
testcontroller.c Added tools for evaluating gyroscope accuracy and IMU polling rates. (#13209) 2025-06-13 14:01:52 -07:00
testcustomcursor.c
testdialog.c dialog: Cocoa shouldn't crash if there's a '.' in the filters. 2025-05-01 18:11:36 -04:00
testdisplayinfo.c
testdraw.c
testdrawchessboard.c
testdropfile.c
testerror.c
testevdev.c
testffmpeg.c
testffmpeg_vulkan.c
testffmpeg_vulkan.h
testfile.c
testfilesystem.c
testgeometry.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testgl.c
testgles.c
testgles2.c
testgpu_simple_clear.c
testgpu_spinning_cube.c
testgpurender_effects.c Add SDL_CreateGPURenderer 2025-04-07 09:26:03 -07:00
testgpurender_effects_CRT.frag.dxil.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.hlsl Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.msl.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.spv.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.dxil.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.hlsl Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.msl.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.spv.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testgpurender_msdf.frag.dxil.h
testgpurender_msdf.frag.hlsl
testgpurender_msdf.frag.msl.h
testgpurender_msdf.frag.spv.h
testhaptic.c Add and use SDL_HapticEffectID typedef 2025-04-24 08:51:55 -07:00
testhittesting.c
testhotplug.c
testiconv.c
testime.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testintersections.c
testkeys.c
testloadso.c
testlocale.c
testlock.c
testmanymouse.c
testmessage.c testmessage: Don't push the event if "Retry" was chosen. 2025-05-02 21:42:47 -04:00
testmodal.c
testmouse.c Handle global mouse state for Emscripten (#12669) 2025-04-02 07:21:21 -07:00
testmultiaudio.c
testnative.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testnative.h
testnativecocoa.m
testnativew32.c
testnativewayland.c
testnativex11.c
testoffscreen.c
testoverlay.c
testpen.c
testplatform.c
testpopup.c Add support for non-constrained and non-grabbing popups 2025-04-29 12:02:14 -04:00
testpower.c
testprocess.c [Process API] Quoting enhancements (#12946) 2025-05-12 09:17:21 -07:00
testqsort.c
testrelative.c
testrendercopyex.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testrendertarget.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testresample.c
testrumble.c
testrwlock.c
testscale.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testsem.c
testsensor.c
testshader.c
testshape.c
testsprite.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testspriteminimal.c
testspritesurface.c
teststreaming.c
testsurround.c
testthread.c
testtime.c
testtimer.c
testtray.c
testurl.c
testutils.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testutils.h Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testver.c
testviewport.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testvulkan.c
testwaylandcustom.c
testwm.c
testyuv.bmp
testyuv.c
testyuv_cvt.c
testyuv_cvt.h
torturethread.c
trashcan.bmp
unifont-15.1.05-license.txt
unifont-15.1.05.hex
utf8.txt