fix event handling regression
authorkub <derkub@gmail.com>
Wed, 14 Feb 2024 22:23:50 +0000 (23:23 +0100)
committerkub <derkub@gmail.com>
Wed, 14 Feb 2024 22:23:50 +0000 (23:23 +0100)
in_sdl.c

index b36beee..5566edb 100644 (file)
--- a/in_sdl.c
+++ b/in_sdl.c
@@ -412,8 +412,8 @@ static int collect_events(struct in_sdl_state *state, int *one_kc, int *one_down
                if (one_down != NULL)
                        *one_down = 1;
        } else
-               i++;
 #endif
+               i++;
        // don't lose events other devices might want to handle
        if (i < count)
                SDL_PeepEvents(events+i, count-i, SDL_ADDEVENT, mask);