sdl2_frt/src/video/windows
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
..
SDL_msctf.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_vkeys.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsclipboard.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsclipboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsevents.c Reverted change for bug 4152 - restrict the win10 mouse bug workaround to win10 v1709 only 2018-05-07 20:10:12 -07:00
SDL_windowsevents.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsframebuffer.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsframebuffer.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowskeyboard.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_windowskeyboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsmessagebox.c Fixed bug 3804 - Message box on Windows truncates button ID 2018-03-24 10:26:40 -07:00
SDL_windowsmessagebox.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsmodes.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsmodes.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsmouse.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsmouse.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsopengl.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_windowsopengl.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsopengles.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsopengles.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsshape.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsshape.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowstaskdialog.h Progress fixing bug 4100 - errors and warnings after changeset 11917 2018-03-02 22:53:25 -08:00
SDL_windowsvideo.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_windowsvideo.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowsvulkan.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_windowsvulkan.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_windowswindow.c SDL: 2018-04-09 10:37:31 -07:00
SDL_windowswindow.h Fixed bug 4018 - Implement SDL_GetWindowBordersSize() under Windows/Win32/WinAPI 2018-01-03 10:58:58 -08:00
wmmsg.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00