SDL/src
Ethan Lee 4b42c05ba1 video: Add SDL_SetWindowMouseRect.
This API and implementation comes from the Unreal Engine branch of SDL, which
originally called this "SDL_ConfineCursor".

Some minor cleanup and changes for consistency with the rest of SDL_video, but
there are two major changes:

1. The coordinate system has been changed so that `rect` is _window_ relative
   and not _screen_ relative, making it easier to implement without having
   global access to the display.
2. The UE version unset all rects when passing `NULL` as a parameter for
   `window`, this has been removed as it was an unused feature anyhow.

Currently this is only implemented for X, but can be supported on Wayland and
Windows at minimum too.
2021-11-08 14:16:54 -08:00
..
atomic atomic: detect clang separately 2021-09-16 17:33:52 -07:00
audio Fixed crash on Android 8, due to bugs in AAudio implementation 2021-11-02 15:59:26 -07:00
core x11/wayland: Fix signal handling while blocking in WaitEventTimeout() 2021-10-30 21:23:45 -07:00
cpuinfo Fix AltiVec detection on FreeBSD 2021-09-21 09:57:10 -07:00
dynapi video: Add SDL_SetWindowMouseRect. 2021-11-08 14:16:54 -08:00
events Cancel any accumulated mouse wheel motion in the opposite direction when the wheel direction changes 2021-11-08 09:58:11 -08:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Improve RISC OS implementations of SDL_GetBasePath and SDL_GetPrefPath 2021-10-12 13:07:52 -07:00
haptic Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
hidapi Added SDL_HIDAPI_DISABLED so it can be disabled like other SDL subsystems 2021-11-08 07:19:45 -08:00
joystick Removed accidental debugging commit (thanks @DomGries!) 2021-11-08 07:10:38 -08: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 SDL_OpenURL (macOS): try to open path if the url cannot be opened (#4830) 2021-11-03 08:35:24 -07:00
power Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
render Fixed build warnings 2021-11-07 11:19:07 -08:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib Build hidapi code into SDL as a new public API 2021-11-07 23:00:59 -08:00
test video: Add SDL_SetWindowMouseRect. 2021-11-08 14:16:54 -08:00
thread Export SDL_LinuxSetThreadPriorityAndPolicy() function (#4877) 2021-11-02 13:56:14 -07:00
timer emscripten: Make timers work (if used with emscripten_set_main_loop) 2021-11-07 15:40:54 -05:00
video video: Add SDL_SetWindowMouseRect. 2021-11-08 14:16:54 -08:00
SDL.c Ensure that SDL_InitSubSystem quits subsystems after an error. (#4834) 2021-10-12 15:55:31 -07:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert_c.h 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 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_hints.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_internal.h Remove SDL_HAVE_RENDER_GEOMETRY define 2021-10-24 22:27:56 -04:00
SDL_log.c log: Fixed compiler warnings on 64-bit Visual Studio. 2021-08-04 02:34:09 -04:00