From 64c48c42025353d26dd57c25a8ff7f7c130300bb Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Fri, 23 Jan 2026 09:41:36 +0100 Subject: [PATCH] Disables keyboard key repeats --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index b124136e..21604c5e 100644 --- a/src/input.c +++ b/src/input.c @@ -199,7 +199,7 @@ input_handle_event(Input *input, SDL_Event *event, InputDeviceType *device_type) { InputDeviceType current_device_type = DeviceType_Unknown; - if (event->type == SDL_EVENT_KEY_DOWN) { + if (event->type == SDL_EVENT_KEY_DOWN && !event->key.repeat) { Uint32 key; if ((key = get_event_modkey(event))) { input->modKeyState |= key;