1SDL_EnableKeyRepeat(3) SDL API Reference SDL_EnableKeyRepeat(3)
2
3
4
6 SDL_EnableKeyRepeat - Set keyboard repeat rate.
7
9 #include "SDL.h"
10
11 int SDL_EnableKeyRepeat(int delay, int interval);
12
14 Enables or disables the keyboard repeat rate. delay specifies how long
15 the key must be pressed before it begins repeating, it then repeats at
16 the speed specified by interval. Both delay and interval are expressed
17 in milliseconds.
18
19 Setting delay to 0 disables key repeating completely. Good default val‐
20 ues are SDL_DEFAULT_REPEAT_DELAY and SDL_DEFAULT_REPEAT_INTERVAL.
21
23 Returns 0 on success and -1 on failure.
24
25
26
27SDL Tue 11 Sep 2001, 22:59 SDL_EnableKeyRepeat(3)