From 9cb44c72bf664c56790d9852f13fe0a48fded89b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 3 Oct 2011 18:06:50 +0000 Subject: [PATCH] - enabled sdl's key repetition when holding keys for easier typing in chat mode --- source/shared_lib/include/platform/sdl/platform_main.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/shared_lib/include/platform/sdl/platform_main.h b/source/shared_lib/include/platform/sdl/platform_main.h index 5c8de06b8..be0a702a4 100644 --- a/source/shared_lib/include/platform/sdl/platform_main.h +++ b/source/shared_lib/include/platform/sdl/platform_main.h @@ -287,10 +287,11 @@ bool hasCommandArgument(int argc, char** argv,const string argName, int *foundIn std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n"; \ return 1; \ } \ - } \ - SDL_EnableUNICODE(1); \ - int result = X(argc, argv); \ - return result; \ + } \ + SDL_EnableUNICODE(1); \ + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); \ + int result = X(argc, argv); \ + return result; \ } #endif