summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-04-18 21:02:25 +0200
committererihel <erihel@gmail.com>2013-04-18 21:02:25 +0200
commitaf24aba899551cce7c4b4d3f3dfe0f31ecf0918d (patch)
treecb3a006ad8ec205e2bcb8f5b6b35e2fad0d8d26b /src
parent6ea0031d83db660946084a28dcf7d48eb3644a6d (diff)
downloadcolobot-af24aba899551cce7c4b4d3f3dfe0f31ecf0918d.tar.gz
colobot-af24aba899551cce7c4b4d3f3dfe0f31ecf0918d.tar.bz2
colobot-af24aba899551cce7c4b4d3f3dfe0f31ecf0918d.zip
* Key repeating in edit fields
Diffstat (limited to 'src')
-rw-r--r--src/app/app.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp
index 3801f95..6231eb6 100644
--- a/src/app/app.cpp
+++ b/src/app/app.cpp
@@ -449,6 +449,7 @@ bool CApplication::Create()
// Enable translating key codes of key press events to unicode chars
SDL_EnableUNICODE(1);
+ SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
// Don't generate joystick events
SDL_JoystickEventState(SDL_IGNORE);