SDL/test
Sam Lantinga f37eef948c Removed raw mouse events
It's too close the 3.2.0 release for an API change like this.

If/when we re-add these, some things for consideration:
* What use cases does this enable that aren't currently possible?
* What cross-platform API guarantees do we make about the availability of these events? e.g. do we try to simulate them where raw input isn't actually available?
* How is this different from the existing relative mode, and how do we clearly explain when you want these events vs wanting relative mode?

Notes from @expikr:
First observation: the reason I originally passed denominators instead of multipliers was because some rational values cannot be exactly represented by floats (e.g 1/120) so instead let the end-developer decide how to do the dividing themselves. It was the reason why it was using split values with an integer numerator to begin with, instead of having both as floats or even just normalize it in advance.

On the other hand, passing them as multipliers might have hypothetical uses for dynamically passing end-user controlled scaling in a transparent manner without coupling? (Though in that case why not just do that as additional fields appended to `motion` structs in an API-compatible layout?)

So it’s somewhat of a philosophical judgement of what this API of optional availability do we intend for it to present itself as:
- should it be a bit-perfect escape hatch with the absolute minimally-denominal abstraction over platform details just enough to be able to serve the full information (á la HIDPIAPI),
- or a renewed ergonomic API for splitting relative motion from cursor motion (in light of The Great Warping Purge) so that it is unburdened by legacy RelativeMode state machines, in which case it would be more appropriate to just call it `RELATIVE` instead of `RAW` and should be added alongside another new event purely for cursor events?

This alternate API stream was conceived in the context of preserving compatibility of the existing RelativeMode state machine by adding an escape hatch. So given the same context, my taste leans towards the former designation.

However, as The Great Warping Purge has made it potentially viable to do so, if I were allowed to break ABI by nuking the RelativeMode state machine entirely, I would prefer the latter designation unified as one of three separate components split from the old state machine, each independently controlled by platform-dependent availability without any state switching of a leaky melting pot:
- cursor visibility controls (if platform has cursor)
- cursor motion events (if platform has cursor)
- relative motion events (if the platform reports hardware motion)
2024-12-21 05:18:42 -08:00
..
android android+test: testcamera needs CAMERA permissions 2024-05-16 16:43:53 +02:00
emscripten ctest/emscripten: make audio and video driver configurable 2024-08-21 20:14:55 +02:00
n3ds
testgpu GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
win32 sdlprocdump: fix minidump filename 2024-08-30 14:18:03 +02:00
audiofile.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
checkkeys.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
childprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
CMakeLists.txt asyncio: Added async i/o APIs. 2024-12-03 17:32:20 -05:00
COPYING
gamepad_axis.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis_arrow.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_axis_arrow.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_back.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_back.h Reduced the size of the gamepad front and back images 2023-07-11 10:20:08 -07:00
gamepad_battery.bmp Separate joystick power state into battery status and percentage 2024-04-01 13:59:00 -07:00
gamepad_battery.h Fixed crashes when a window has NULL driverdata 2024-04-15 10:15:10 -07:00
gamepad_battery_unknown.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_unknown.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_wired.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_wired.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button_background.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button_background.h Added button background 2023-07-11 10:26:22 -07:00
gamepad_button_small.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_button_small.h Added joystick and gamepad element display in testgamepad 2023-07-10 17:06:42 -07:00
gamepad_face_abxy.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_abxy.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_bayx.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_bayx.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_sony.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_face_sony.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_front.bmp Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_front.h Use light text for button labels so they show up well over the activity highlight 2023-07-16 04:32:12 -07:00
gamepad_touchpad.bmp Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_touchpad.h Added touchpad visualization for testgamepad 2023-07-10 11:36:32 -07:00
gamepadutils.c testcontroller: fixed incorrect usage of memcpy() 2024-10-24 18:12:01 -07:00
gamepadutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
glass.bmp Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
glass.h Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
icon.bmp
icon.h testspriteminimal: make standalone by embedding icon.bmp 2023-09-19 17:58:25 +02:00
icon2x.bmp Added support for high-DPI cursors and icons 2024-08-01 13:48:28 -07:00
LICENSE.txt examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
logaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
loopwave.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
main.cpp
moose.dat
physaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
picture.xbm
pretest.c Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
relative_mode.markdown Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
sample.bmp
sample.wav
soundboard.bmp testaudio: Fixed soundboard icon, which had a colorkey issue. 2023-08-03 21:35:38 -04:00
soundboard_levels.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
speaker.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
sword.wav examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
template.test.in build: Fix testprocess invocation during "as-installed" tests 2024-09-25 14:48:26 -07:00
testasyncio.c asyncio: Allow file closes to request a flush/fsyncdata. 2024-12-03 17:32:20 -05:00
testatomic.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudio.c Removed unnecessary const-qualifiers in src and test files 2024-10-03 17:39:08 -04:00
testaudiohotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudioinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudiorecording.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testaudiostreamdynamicresample.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testautomation.c SDL_test: move argument parsing into SDL_test 2024-09-06 03:06:40 +02:00
testautomation_audio.c Remove casts from typed pointer to void * for printf %p in test projects 2024-09-24 14:40:32 +03:00
testautomation_blit.c Adding void to empty function prototype parenthesis 2024-09-11 19:44:52 -07:00
testautomation_clipboard.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_events.c Added SDL_IsMainThread() and SDL_RunOnMainThread() 2024-12-05 13:53:51 -08:00
testautomation_guid.c SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
testautomation_hints.c Removed SDL_HINT_MOUSE_RELATIVE_MODE_WARP 2024-12-19 10:33:02 -08:00
testautomation_images.c test: Make blit_testExampleApplicationRender work on big endian 2024-10-06 08:27:58 -07:00
testautomation_images.h Added SDL_BlitSurfaceTiled() 2024-07-20 18:21:19 -07:00
testautomation_intrinsics.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_iostream.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_joystick.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_keyboard.c testautomation keyboard: use space instead of a 2024-11-08 07:01:50 -08:00
testautomation_log.c Added SDL_LogTrace() 2024-09-17 02:04:54 -07:00
testautomation_main.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_math.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_mouse.c test: Fix mouse focus test on X11 2024-10-10 11:37:45 -04:00
testautomation_pixels.c Validate that pixel formats have the correct attributes 2024-11-17 11:58:57 -08:00
testautomation_platform.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_properties.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_rect.c Fixed Cohen-Sutherland out code computation for float line intersection 2024-10-13 13:04:59 -07:00
testautomation_render.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testautomation_sdltest.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_stdlib.c test/testautomation_stdlib.c: fix gcc warning on 32 bit 2024-10-10 21:10:24 +03:00
testautomation_subsystems.c Verify that the subsystems were successfully initialized 2024-09-15 12:04:10 -07:00
testautomation_suites.h pen: Rework public API. 2024-08-09 22:09:23 -04:00
testautomation_surface.c A zero source rect is valid for blitting 2024-09-25 22:36:55 -07:00
testautomation_time.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_timer.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_video.c video: Drop size and position requests for windows in a fixed size/position state 2024-12-17 10:45:40 -05:00
testbounds.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testcamera.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testcolorspace.c testcolorspace.c: Fix unreachable code warning 2024-09-27 15:22:24 -07:00
testcontroller.c testcontroller: update the controller name when it's opened as a gamepad 2024-11-05 11:43:28 -08:00
testcustomcursor.c test: Fix testcustomcursor on high-DPI displays 2024-10-01 12:40:17 -04:00
testdialog.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testdisplayinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdraw.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdrawchessboard.c testdrawchessboard: Allow using the standard render API 2024-10-12 16:07:16 -07:00
testdropfile.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testerror.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testevdev.c Make sure we call SDL_Quit() before SDLTest_CommonDestroyState() 2024-07-28 08:05:31 -07:00
testffmpeg.c Minor cleanup 2024-10-31 15:44:41 -07:00
testffmpeg_vulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testffmpeg_vulkan.h testffmpeg_vulkan: fix -Wincompatible-pointer-types warning 2024-03-22 11:05:13 -07:00
testfile.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testfilesystem.c filesystem: Added SDL_GetCurrentDirectory(). 2024-11-27 23:42:11 -05:00
testgeometry.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testgl.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testgles2.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2_sdf.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2_sdf_img_normal.bmp
testgles2_sdf_img_sdf.bmp
testgpu_simple_clear.c tests: Fix GPU tests crashing when window is minimized 2024-12-19 16:21:50 -08:00
testgpu_spinning_cube.c tests: Fix GPU tests crashing when window is minimized 2024-12-19 16:21:50 -08:00
testhaptic.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testhittesting.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testhotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testiconv.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testime.c Moved the SDL_ttf IME demo to showfont in the SDL_ttf project 2024-10-06 00:24:01 -07:00
testintersections.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testkeys.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testloadso.c loadso: library handles are now SDL_SharedObject* instead of void*. 2024-10-01 12:16:10 -04:00
testlocale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testlock.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
testmanymouse.c Rename SDL_BUTTON() to SDL_BUTTON_MASK() 2024-10-04 09:13:59 -07:00
testmessage.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmodal.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmouse.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testmultiaudio.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testnative.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testnative.h Include SDL_build_config.h without a 'build_config/' prefix 2024-08-23 00:51:35 +00:00
testnativecocoa.m fixed typo in prev. patch. 2023-07-28 07:35:04 +03:00
testnativew32.c Make testnative (on win32) UNICODE compatible 2024-06-20 15:40:32 +02:00
testnativewayland.c Renamed SDL_Get/SetProperty() to SDL_Get/SetPointerProperty() 2024-07-12 10:41:02 -07:00
testnativex11.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
testoffscreen.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testoverlay.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testpen.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testplatform.c testplatform: make sure bool is 1 byte 2024-09-18 10:01:15 -07:00
testpopup.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testpower.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
testqsort.c SDL_strtoll(), SDL_strtoull(), SDL_lltoa(), and SDL_ulltoa() use long long values 2024-09-09 15:46:26 -07:00
testrelative.c Removed raw mouse events 2024-12-21 05:18:42 -08:00
testrendercopyex.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testrendertarget.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testresample.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testrumble.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testrwlock.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testscale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsem.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsensor.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshader.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshape.c Don't overwrite the SDL_IOFromConstMem() error in testshape 2024-10-14 20:07:03 -07:00
testsprite.c Fixed crashes handling D3D11/12 device lost in testsprite 2024-10-21 00:29:18 -07:00
testspriteminimal.c testspriteminimal: only quit when escape is pressed 2024-10-23 10:51:14 -07:00
testspritesurface.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
teststreaming.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsurround.c Simplify get_channel_name() so it's easier for people to read and understand 2024-10-22 18:19:30 -07:00
testthread.c Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority() 2024-10-04 08:57:03 -07:00
testtime.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testtimer.c Improved implementation of SDL_DelayPrecise() (thanks @nightmareci!) 2024-10-11 21:18:31 -07:00
testurl.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testutils.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testver.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testviewport.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testvulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwaylandcustom.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwm.c Enable the SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS hints on macOS 2024-12-06 17:07:16 -08:00
testyuv.bmp
testyuv.c Add void to run_colorspace_test() function prototype 2024-10-16 11:16:42 -07:00
testyuv_cvt.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testyuv_cvt.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
torturethread.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
trashcan.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
unifont-15.1.05-license.txt Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
unifont-15.1.05.hex Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
utf8.txt