diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-21 14:08:45 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-02-21 14:08:45 +0100 |
| commit | cd9e837141d6d4ef48d3d85a052acef950da9652 (patch) | |
| tree | 1340e70de950e445cbf76e8e0c7026abbd9c3fcf | |
| parent | 6f2af433ba7554a551481d19efe3ae7fba55bd46 (diff) | |
Default repeat values.
| -rw-r--r-- | src/client/interface.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/interface.c b/src/client/interface.c index a53a73a..194d1d0 100644 --- a/src/client/interface.c +++ b/src/client/interface.c @@ -141,11 +141,13 @@ int initSDL() SDL_Quit(); return -1; } - // enable unicode by default for keyboard support + // Enable unicode by default for keyboard support. + // It is bit more consuming than the nonsdl but can draw more characters. SDL_EnableUNICODE(1); SDL_WM_SetCaption(WINDOW_TITLE, NULL); - //SDL_ShowCursor(0); - SDL_EnableKeyRepeat(0, 1); + + // Keyboard repeating + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); timer = SDL_AddTimer(INTERVAL, TimerCallback, NULL); initKeyboardBuffer(KEYBOARD_BUFFER_SIZE); |