From: Mikko Rasa Date: Fri, 25 Nov 2022 20:05:23 +0000 (+0200) Subject: Disable keyboard autorepeat by default X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=94f7e5d28dd0a58f011677db11a0bc65948a2bda;p=libs%2Fgame.git Disable keyboard autorepeat by default It's usually undesirable in games, and the setting doesn't affect character input. --- 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)); }