sdl2_frt/src/video
Sam Lantinga a4d0571e4a Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only
Daniel Gibson

Sorry, but it seems like Microsoft didn't fix the issue properly.

I just updated my Win10 machine, it now is Version 1803, Build 17134.1

I tested with SDL2 2.0.7 (my workaround was released with 2.0.8) and still got
lots of events that directly undid the prior "real" events - just like before.
(See simple testcase in attachement)
By default it sets SDL_HINT_MOUSE_RELATIVE_MODE_WARP - which triggered (and on my machine still triggers) the buggy behavior. You can start it with -raw, then it'll not set that hint and the events will be as expected.
The easiest way to see the difference is looking at the window title, which shows accumulated X and Y values: If you just move your mouse to the right, in -raw mode the number just increases. In non-raw mode (using mouse warping) it stays around 0.

I also had a WinAPI-only testcase: https://gist.github.com/DanielGibson/b5b033c67b9137f0280af9fc53352c68
It just calls SetCursorPos(320,240); on each WM_MOUSEMOVE event, and it also
logs all those events to a mouseevents.log textfile.
This log indeed looks a bit different since the latest Win10 update: It seems like all those events with x=320 y=240 do arrive - but only after I stopped moving the mouse - even though the cursor seems to be moved back every frame (or so).
So moving the mouse to the right gives X coordinates like
330, 325, 333, 340, 330, ...
and then when stopping movement I get lots of events with X coordinate 320
2018-05-07 20:10:12 -07:00
..
android Reimplemented Android cursor API support using reflection so it builds with older SDKs 2018-03-16 11:08:53 -07:00
cocoa Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events 2018-03-10 21:13:50 -08:00
directfb Updated copyright for 2018 2018-01-03 10:03:25 -08:00
dummy Updated copyright for 2018 2018-01-03 10:03:25 -08:00
emscripten Updated copyright for 2018 2018-01-03 10:03:25 -08:00
haiku Updated copyright for 2018 2018-01-03 10:03:25 -08:00
khronos Fixed bug 3616 - SDL_GL_CreateContext fails with SDL_GL_CONTEXT_DEBUG_FLAG and ANGLE/GLES 2.0 2017-08-29 22:04:43 -07:00
kmsdrm Updated copyright for 2018 2018-01-03 10:03:25 -08:00
mir revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
nacl Updated copyright for 2018 2018-01-03 10:03:25 -08:00
pandora Updated copyright for 2018 2018-01-03 10:03:25 -08:00
psp Updated copyright for 2018 2018-01-03 10:03:25 -08:00
qnx Fixed mingw Windows build, since SDL_vulkan_internal.h includes windows.h 2017-08-28 00:43:14 -07:00
raspberry Fixed bug 4054 - Raspberry Pi refresh rate detection 2018-02-07 15:05:30 -08:00
uikit Fixed setting the layer drawable size 2018-03-02 12:08:18 -08:00
vivante Updated copyright for 2018 2018-01-03 10:03:25 -08:00
wayland wayland: zxdg_shell_v6 needs a configure event before using a surface at all. 2018-04-15 17:42:09 -04:00
windows Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only 2018-05-07 20:10:12 -07:00
winrt revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
x11 Fixed bug 4085 - X11: Allow configuring _NET_WM_BYPASS_COMPOSITOR through SDL hints 2018-02-16 10:23:10 -08:00
yuv2rgb yuv: patched to compile. 2018-02-17 20:18:48 -05:00
SDL_blit_0.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_1.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_A.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_auto.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_auto.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_copy.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_copy.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_N.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_slow.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_slow.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_blit.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_bmp.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_clipboard.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_egl_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_egl.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_fillrect.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_pixels_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_pixels.c video: put a spinlock around a global linked list. 2018-02-16 14:56:28 -05:00
SDL_rect_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_rect.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_RLEaccel_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_RLEaccel.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_shape_internals.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_shape.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_stretch.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_surface.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_sysvideo.h Fixed ISO C99 compatibility 2018-01-30 18:08:34 -08:00
SDL_video.c Improved error messages when Vulkan isn't configured (thanks Daniel Gibson!) 2018-04-23 22:29:14 -07:00
SDL_vulkan_internal.h Backout the vulkan change in d449dea10fc8 breaks Mir builds 2018-02-23 19:12:04 -05:00
SDL_vulkan_utils.c Fixed formatting, added actual count to SDL error message 2018-01-17 13:12:39 -08:00
SDL_yuv_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_yuv.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
sdlgenblit.pl Updated copyright for 2018 2018-01-03 10:03:25 -08:00