You may need to wait a bit for SDL_WarpMouseInWindow() to complete

main
Sam Lantinga 2021-09-22 09:56:06 -07:00
parent 94a42af570
commit a4a9d28461
1 changed files with 1 additions and 0 deletions

View File

@ -527,6 +527,7 @@ mouse_getMouseFocus(void *arg)
SDLTest_AssertPass("SDL_WarpMouseInWindow(...,%i,%i)", x, y);
/* Pump events to update focus state */
SDL_Delay(100);
SDL_PumpEvents();
SDLTest_AssertPass("SDL_PumpEvents()");