engine: platform: sdl2: add a note about useless and broken WarpMouseInWindow on Wayland

This commit is contained in:
Alibek Omarov
2025-12-08 19:05:38 +05:00
parent a858719a4b
commit 2a3dcecfae

View File

@@ -123,6 +123,14 @@ void SDLash_Init( const char *basedir )
#endif // SDL_HINT_MOUSE_TOUCH_EVENTS
SDL_SetHint( SDL_HINT_TOUCH_MOUSE_EVENTS, "0" );
// NOTE: setting this hint makes no sense, as of course
// it doesn't make warps magically work in normal, non-relative mode
// there is pointer_warp_v1 extension but it's only implemented in SDL3
// at the time of writing, so there it should just work if compositor
// supports it
// SDL_SetHint( SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP, "1" );
SDL_StopTextInput();
SDLash_InitCursors();