mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fix GetGlobalMouseState when xi2 is not available at runtime
This commit is contained in:

committed by
Sam Lantinga

parent
24d419c09f
commit
0123d6311d
@@ -415,6 +415,9 @@ static Uint32 X11_GetGlobalMouseState(float *x, float *y)
|
||||
|
||||
#if !SDL_VIDEO_DRIVER_X11_XINPUT2
|
||||
videodata->global_mouse_changed = SDL_TRUE;
|
||||
#else
|
||||
if (!SDL_X11_HAVE_XINPUT2)
|
||||
videodata->global_mouse_changed = SDL_TRUE;
|
||||
#endif
|
||||
|
||||
/* check if we have this cached since XInput last saw the mouse move. */
|
||||
|
Reference in New Issue
Block a user