SDL API Reference SDL_EnableKeyRepeat(3)
NAME
SDL_EnableKeyRepeat - Set keyboard repeat rate.
SYNOPSIS
#include "SDL.h"
int SDL_EnableKeyRepeat(int delay, int interval);
DESCRIPTION
Enables or disables the keyboard repeat rate. delay speci-
fies how long the key must be pressed before it beginsrepeating, it then repeats at the speed specified by inter-
val. Both delay and interval are expressed in milliseconds. Setting delay to 0 disables key repeating completely. Gooddefault values are SDL_DEFAULT_REPEAT_DELAY and
SDL_DEFAULT_REPEAT_INTERVAL.
RETURN VALUEReturns 0 on success and -1 on failure.
SDL Last change: Tue 11 Sep 2001, 22:59 1