Fix GetGlobalMouseState when xi2 is not available at runtime
(cherry picked from commit 0123d6311d)
This commit is contained in:
1 parent
da6bce4f76
commit
7d55ccb8b0
1 file changed
+3
@@ -416,6 +416,9 @@ static Uint32 X11_GetGlobalMouseState(int *x, int *y)
|
|||||||
|
|
||||||
#if !SDL_VIDEO_DRIVER_X11_XINPUT2
|
#if !SDL_VIDEO_DRIVER_X11_XINPUT2
|
||||||
videodata->global_mouse_changed = SDL_TRUE;
|
videodata->global_mouse_changed = SDL_TRUE;
|
||||||
|
#else
|
||||||
|
if (!SDL_X11_HAVE_XINPUT2)
|
||||||
|
videodata->global_mouse_changed = SDL_TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check if we have this cached since XInput last saw the mouse move. */
|
/* check if we have this cached since XInput last saw the mouse move. */
|
||||||
|
|||||||
Reference in new issue
Block a user