Date: | 2013-01-31 00:55:58 (11 years 1 month ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 4fb2a8cbee1d86d76358bba02a005c0f4d356f64 |
Message: | ubb-la/gui.c (gui_init): enable keyboard repeat |
Files: |
ubb-la/gui.c (2 diffs) |
Change Details
ubb-la/gui.c | ||
---|---|---|
32 | 32 | |
33 | 33 | #define MAX_ZOOM 3 |
34 | 34 | |
35 | #define REPEAT_DELAY_MS 300 | |
36 | #define REPEAT_INTERVAL_MS 30 | |
35 | 37 | |
36 | 38 | static SDL_Surface *surf; |
37 | 39 | |
... | ... | |
49 | 51 | fprintf(stderr, "SDL_SetVideoMode: %s\n", SDL_GetError()); |
50 | 52 | exit(1); |
51 | 53 | } |
54 | ||
55 | SDL_EnableKeyRepeat(REPEAT_DELAY_MS, REPEAT_INTERVAL_MS); | |
52 | 56 | } |
53 | 57 | |
54 | 58 |
Branches:
master