]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
enable key repeat
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2005 11:04:06 +0000 (11:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2005 11:04:06 +0000 (11:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5000 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 0961a199c138f3f255366b492454f55154fa998e..b10b064b7ebf26ad20ae8c82e823dcbb4978eccf 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -240,6 +240,8 @@ static void IN_Init( void )
 {
        // init keyboard
        SDL_EnableUNICODE( SDL_ENABLE );
+       // enable key repeat since everyone expects it
+       SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
 
        // init mouse
        vid_usingmouse = false;