mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 20:09:38 +08:00
You may need to wait a bit for SDL_WarpMouseInWindow() to complete
This commit is contained in:
@@ -527,6 +527,7 @@ mouse_getMouseFocus(void *arg)
|
|||||||
SDLTest_AssertPass("SDL_WarpMouseInWindow(...,%i,%i)", x, y);
|
SDLTest_AssertPass("SDL_WarpMouseInWindow(...,%i,%i)", x, y);
|
||||||
|
|
||||||
/* Pump events to update focus state */
|
/* Pump events to update focus state */
|
||||||
|
SDL_Delay(100);
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
SDLTest_AssertPass("SDL_PumpEvents()");
|
SDLTest_AssertPass("SDL_PumpEvents()");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user