diff --git a/ubb-la/gui.c b/ubb-la/gui.c index 9b235a6..964c8a6 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -32,6 +32,8 @@ #define MAX_ZOOM 3 +#define REPEAT_DELAY_MS 300 +#define REPEAT_INTERVAL_MS 30 static SDL_Surface *surf; @@ -49,6 +51,8 @@ void gui_init(void) fprintf(stderr, "SDL_SetVideoMode: %s\n", SDL_GetError()); exit(1); } + + SDL_EnableKeyRepeat(REPEAT_DELAY_MS, REPEAT_INTERVAL_MS); }