Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

SDL_EnableKeyRepeat (3)

Name

SDL_EnableKeyRepeat - Set keyboard repeat rate.

Synopsis

#include "SDL.h"

int SDL_EnableKeyRepeat(int delay, int interval);

Description

SDL_EnableKeyRepeat(3)         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 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 val-
       ues are SDL_DEFAULT_REPEAT_DELAY and SDL_DEFAULT_REPEAT_INTERVAL.

RETURN VALUE
       Returns 0 on success and -1 on failure.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/sdl      |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+
NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source        was        downloaded        from        https://www.lib-
       sdl.org/release/SDL-1.2.15.tar.gz

       Further information about this software can be found on the open source
       community website at https://www.libsdl.org/.



SDL                         Tue 11 Sep 2001, 22:59      SDL_EnableKeyRepeat(3)