mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
mouse: Make pointer warp emulation via relative mode available to all platforms
Move the Wayland pointer warp emulation code up to the SDL mouse layer, and activate it when a client attempts to warp a hidden mouse cursor when the hint is set. testrelative adds the ability to test the warp emulation activation/deactivation with the --warp parameter and 'c' key for toggling cursor visibility.
This commit is contained in:
@@ -3596,3 +3596,7 @@ typedef SDL_JoystickGUID, SDL_GUID;
|
||||
- SDL_OnApplicationDidBecomeActive
|
||||
+ SDL_OnApplicationDidEnterForeground
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP
|
||||
+ SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE
|
||||
|
||||
Reference in New Issue
Block a user