1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 21:14:04 +02:00

ubb-la/gui.c (gui_init): enable keyboard repeat

This commit is contained in:
Werner Almesberger 2013-01-30 20:55:58 -03:00
parent c702fc0e90
commit 4fb2a8cbee

View File

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