From 4fb2a8cbee1d86d76358bba02a005c0f4d356f64 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 30 Jan 2013 20:55:58 -0300 Subject: [PATCH] ubb-la/gui.c (gui_init): enable keyboard repeat --- ubb-la/gui.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }