Explorar o código

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

Sam Lantinga %!s(int64=4) %!d(string=hai) anos
pai
achega
a4a9d28461
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      test/testautomation_mouse.c

+ 1 - 0
test/testautomation_mouse.c

@@ -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()");