]> git.tdb.fi Git - libs/game.git/commitdiff
Disable keyboard autorepeat by default
authorMikko Rasa <tdb@tdb.fi>
Fri, 25 Nov 2022 20:05:23 +0000 (22:05 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 25 Nov 2022 20:05:23 +0000 (22:05 +0200)
It's usually undesirable in games, and the setting doesn't affect
character input.

source/gameview/application.h

index 5bbc95dee538a5931f4fed7e9e00b7fd346f7c6d..dbbbbe843815c588660ebb00f40b4f9be2bd80b9 100644 (file)
@@ -45,6 +45,7 @@ Application<T, R>::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));
 }