mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 18:15:55 +02:00
ubb-la/gui.c (gui_init): enable keyboard repeat
This commit is contained in:
parent
c702fc0e90
commit
4fb2a8cbee
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user