enable key repeat in SDL emulation mode

This commit is contained in:
HW
2012-06-02 23:57:25 +02:00
parent 02c40b6078
commit e2af463bac

View File

@@ -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
}