X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fconsole.cpp;h=cc88905bc2bd1341b7f04e93b94513e3ef387916;hb=3e89eb527d5f3bca2cb8cd219784048764a148f5;hp=fba096f2e552de9fbe3fd15bbe5f1d9b2c1488c6;hpb=0ddca9954e787d0b9f7be9ca540b6317f9a69d5c;p=supertux.git 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