From 94f7e5d28dd0a58f011677db11a0bc65948a2bda Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 25 Nov 2022 22:05:23 +0200 Subject: [PATCH] Disable keyboard autorepeat by default It's usually undesirable in games, and the setting doesn't affect character input. --- source/gameview/application.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gameview/application.h b/source/gameview/application.h index 5bbc95d..dbbbbe8 100644 --- a/source/gameview/application.h +++ b/source/gameview/application.h @@ -45,6 +45,7 @@ Application::Application(): presenter(director, gl_view), player_input(director, window) { + window.set_keyboard_autorepeat(false); window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &Application::exit), 0)); } -- 2.43.0