Files
SDL/include/SDL3
expikr 345cab1e36 streamline cursor clipping logic on windows (#11237)
This commit does the following:
- add logic in the `WM_MOUSEMOVE` case of the Window to conditionally call `WIN_UpdateClipCursor` upon receiving cursor motion if SDL is expecting the mouse to be clipped in some way (Fixes #7890)
- remove Windows-specific periodic refresh of cursor clipping and its `SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL` hint (superceded by the above bullet point)
- streamline the processing logic within `WIN_UpdateClipCursor` for better readability of each branch, and avoid calling the Platform API until it is absolutely necessary.
- move `relative_mouse_center` field from Windows-specific per-window `SDL_WindowData` to the global `SDL_Mouse` struct, and the corresponding hint callbacks to `SDL_mouse.c` instead of `SDL_windowswindow.c`
2024-12-18 17:25:06 -08:00
..
2024-12-05 08:29:19 +00:00
2024-12-02 00:37:15 +00:00
2024-12-16 06:13:48 +00:00
2024-12-16 06:13:48 +00:00
2024-12-16 06:13:48 +00:00
2024-12-16 06:13:48 +00:00
2024-11-28 04:42:44 +00:00
2024-12-06 00:49:29 +00:00
2024-11-14 01:12:18 +00:00
2024-12-16 06:13:48 +00:00
2024-12-16 06:13:48 +00:00
2024-12-16 06:13:48 +00:00
2024-11-28 04:36:33 +00:00
2024-12-16 06:13:48 +00:00
2024-08-29 17:33:52 -07:00
2024-12-18 06:22:41 +00:00
2024-12-19 01:06:43 +00:00
2024-12-18 15:41:13 +00:00
2024-12-16 06:13:48 +00:00
2024-12-18 06:22:41 +00:00
2024-10-27 21:42:48 +00:00
2024-11-28 04:36:33 +00:00
2024-09-28 16:55:09 -07:00
2024-11-28 04:36:33 +00:00
2024-12-17 15:46:19 +00:00