From cd9e837141d6d4ef48d3d85a052acef950da9652 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sat, 21 Feb 2009 14:08:45 +0100 Subject: Default repeat values. --- src/client/interface.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/client') 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); -- cgit v1.2.3