From bd2fe5b9be6661ed87c45d28564e1610c878e3ad Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 2 Apr 2024 19:19:56 +0200 Subject: [PATCH] use SDL_PeepEvents again grrrrrrr --- src/sdl/i_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index ad2d03f86..bc932d87f 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -414,7 +414,7 @@ static INT32 GetTypedChar(SDL_Scancode code, SDL_Keysym *sym) if (Text_Input_Only) { - while (SDL_PollEvent(&next_event) && next_event.type == SDL_TEXTINPUT) + if (SDL_PeepEvents(&next_event, 1, SDL_PEEKEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT) == 1 && next_event.type == SDL_TEXTINPUT) { if (next_event.text.text[1] == '\0') // limit to ASCII return next_event.text.text[0];