fixed broken game controller event handling in joystick calibration
authorHolger Schemel <info@artsoft.org>
Mon, 3 Jul 2017 19:58:31 +0000 (21:58 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 3 Jul 2017 19:58:31 +0000 (21:58 +0200)
src/screens.c

index 031d37dda6f90fc1cc8f715372213860726aef4e..d9abbb6f5b822b4ed7b99dad6d95dbea52c001b3 100644 (file)
@@ -6404,7 +6404,7 @@ static boolean CalibrateJoystickMain(int player_nr)
 
   while (result < 0)
   {
-    if (PendingEvent())                /* got event */
+    while (PendingEvent())             /* got event */
     {
       Event event;