SDL/src
Sam Lantinga 91a55a02de Relative mouse motion is delivered to the window with keyboard focus
This was the original intent (note SDL_UpdateWindowGrab() in SDL_OnWindowFocusGained() and SDL_OnWindowFocusLost()) and fixes a bug where relative motion unexpectedly stops if the task bar is covering the bottom of the game window and the mouse happens to move over it while relative mode is enabled.

Another alternative would be to confine the mouse when relative mode is enabled, but that generates mouse motion which would need to be ignored, and it's possible for the user moving the mouse to combine with the mouse moving into the confined area so you can't easily tell whether to ignore the mouse motion. See https://github.com/libsdl-org/SDL/issues/4165 for a case where this is problematic.
2021-08-14 00:00:57 -07:00
..
atomic spinlock: Favor gcc-style atomics over MSVC interfaces. 2021-07-27 13:45:33 -04:00
audio Improve portability of SDL_Convert51ToStereo_AVX 2021-08-12 16:04:35 -07:00
core dbus: Wrap init in a spinlock. 2021-08-04 13:30:12 -04:00
cpuinfo Fix pointer provenance in SDL_SIMDRealloc 2021-07-29 14:42:15 -07:00
dynapi Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate a user-specified pointer with an SDL texture 2021-08-10 15:17:59 -07:00
events Get the window size for the window receiving the mouse motion 2021-08-14 00:00:57 -07:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Windows: Fix SDL_GetBasePath() truncating paths 2021-06-12 23:07:46 -04:00
haptic Rename haptic methods to avoid confusion with joystick: 2021-06-10 16:41:09 -07:00
hidapi Fixed building on Windows with cmake, ninja, and clang 2021-08-06 12:28:24 -07:00
joystick Fixed build 2021-08-13 20:48:56 -07:00
libm Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
main Updated to version 2.0.17 for development 2021-08-10 15:02:36 -07:00
misc unix: OpenURL: Move unsetenv above vfork 2021-08-01 03:58:49 -07:00
power Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
render Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate a user-specified pointer with an SDL texture 2021-08-10 15:17:59 -07:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib Fixed building on Windows with cmake, ninja, and clang 2021-08-06 12:28:24 -07:00
test Added Ctrl-T to toggle topmost mode in test programs 2021-08-13 17:53:39 -07:00
thread configuration updates for dlopen: 2021-08-10 12:07:32 -07:00
timer Formatting 2021-03-08 09:07:12 -08:00
video Relative mouse motion is delivered to the window with keyboard focus 2021-08-14 00:00:57 -07:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_log.c log: Fixed compiler warnings on 64-bit Visual Studio. 2021-08-04 02:34:09 -04:00
SDL.c linux: (de)initialize d-bus at init and quit. 2021-04-02 14:35:11 -04:00