From f6d54bf75c28e60e9028fded421047cb6861d589 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:18:15 +0200 Subject: [PATCH] fix waitEvent to correctly handle mouse inputs --- src/sdl_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp index ecb711f02..c90d4951c 100644 --- a/src/sdl_window.cpp +++ b/src/sdl_window.cpp @@ -441,9 +441,9 @@ void WindowSDL::waitEvent() { break; case SDL_EVENT_KEY_DOWN: case SDL_EVENT_KEY_UP: - SDL_AddTimer(33, keyRepeatCallback, (void*)payload_to_timer); // this is intentional passthrough case SDL_EVENT_MOUSE_BUTTON_UP: case SDL_EVENT_MOUSE_BUTTON_DOWN: + SDL_AddTimer(33, keyRepeatCallback, (void*)payload_to_timer); // this is intentional passthrough onKeyPress(&event); break; case SDL_EVENT_GAMEPAD_BUTTON_DOWN: