Skip to content
Permalink
Browse files

Fixed bug #112

Added SDL_GetKeyRepeat()
  • Loading branch information
slouken committed Mar 13, 2006
1 parent 889f8a3 commit 66c623f3af051dbbe956bfa6f243817f86cd453b
Showing with 11 additions and 0 deletions.
  1. +4 −0 WhatsNew
  2. +1 −0 include/SDL_keyboard.h
  3. +6 −0 src/events/SDL_keyboard.c
@@ -3,6 +3,10 @@ This is a list of API changes in SDL's version history.

Version 1.0:

1.2.10:
Added SDL_GetKeyRepeat()
Added SDL_config.h, with defaults for various build environments.

1.2.7:
Added CPU feature detection functions to SDL_cpuinfo.h:
SDL_HasRDTSC(), SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE(),
@@ -84,6 +84,7 @@ extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
* If 'delay' is set to 0, keyboard repeat is disabled.
*/
extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);

/*
* Get a snapshot of the current state of the keyboard.
@@ -569,3 +569,9 @@ int SDL_EnableKeyRepeat(int delay, int interval)
return(0);
}

void SDL_GetKeyRepeat(int *delay, int *interval)
{
*delay = SDL_KeyRepeat.delay;
*interval = SDL_KeyRepeat.interval;
}

0 comments on commit 66c623f

Please sign in to comment.