From e2af463bac2aa3d03a6042ebc7163a77ad290a2b Mon Sep 17 00:00:00 2001 From: HW Date: Sat, 2 Jun 2012 23:57:25 +0200 Subject: [PATCH] enable key repeat in SDL emulation mode --- input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input.c b/input.c index a018c8147..d5005c2e3 100644 --- a/input.c +++ b/input.c @@ -117,6 +117,7 @@ static int openInputDevice(lua_State *L) { if(SDL_Init(SDL_INIT_VIDEO) < 0) { return luaL_error(L, "cannot initialize SDL."); } + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); return 0; #endif }