From 1c00519938edec1bdbfcae8d86bf4748e74ea746 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Wed, 5 Jun 2024 07:03:06 -0400 Subject: [PATCH] fix: enable key repeat in rmlui menu (#364) --- src/game/input.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/input.cpp b/src/game/input.cpp index 09da9b5..677fb31 100644 --- a/src/game/input.cpp +++ b/src/game/input.cpp @@ -102,8 +102,9 @@ bool sdl_event_filter(void* userdata, SDL_Event* event) { { SDL_KeyboardEvent* keyevent = &event->key; - // Skip repeated events. - if (event->key.repeat) { + // Skip repeated events when not in the menu + if (recompui::get_current_menu() == recompui::Menu::None && + event->key.repeat) { break; }