logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_EnableKeyRepeat - Set keyboard repeat rate.

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 values are SDL_DEFAULT_REPEAT_DELAY
       and SDL_DEFAULT_REPEAT_INTERVAL.

Name

       SDL_EnableKeyRepeat - Set keyboard repeat rate.

Return Value

       Returns 0 on success and -1 on failure.

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

Synopsis

#include"SDL.h"intSDL_EnableKeyRepeat(intdelay,intinterval);

See Also