From: Wolfgang Becker Date: Wed, 7 Jun 2006 20:53:19 +0000 (+0000) Subject: EnableKeyRepeat while console is open. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=113cdbf07f441329690714a53a436503ab1d4b35;p=supertux.git EnableKeyRepeat while console is open. SVN-Revision: 3638 --- diff --git a/src/console.cpp b/src/console.cpp index fba096f2e..cc88905bc 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -420,6 +420,7 @@ Console::show() focused = true; height = 256; alpha = 1.0; + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); } void @@ -431,6 +432,7 @@ Console::hide() // clear input buffer inputBuffer.str(std::string()); + SDL_EnableKeyRepeat(0, SDL_DEFAULT_REPEAT_INTERVAL); } void