mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: platform: sdl2: add a note about useless and broken WarpMouseInWindow on Wayland
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user