Tao.Sdl SDK Documentation |
|
Sdl.SDL_EnableKeyRepeat Method
Set keyboard repeat rate.
[Visual Basic]
Public Shared Function SDL_EnableKeyRepeat( _
ByVal
rate As
Integer, _
ByVal
delay As
Integer _
) As
Integer
[C#]
public static
int SDL_EnableKeyRepeat(
int rate,
int delay);
Parameters
-
rate
-
-
delay
-
Return Value
Returns 0 on success and -1 on failure.
Remarks
Enables or disables the keyboard repeat rate. delay specifies how long the key must be pressed before it begins repeating, it then repeats at the speed specified by interval. Both delay and interval are expressed in milliseconds.
Setting delay to 0 disables key repeating completely. Good default values are SDL_DEFAULT_REPEAT_DELAY and SDL_DEFAULT_REPEAT_INTERVAL.
Binds to C-function in SDL_keyboard.h
int SDL_EnableKeyRepeat(int delay, int interval);
See Also
Sdl Class | Tao.Sdl Namespace