Fixed bug #112
Added SDL_GetKeyRepeat() --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401511
This commit is contained in:
parent
72dd8e4f2b
commit
d066241b5d
3 changed files with 11 additions and 0 deletions
4
WhatsNew
4
WhatsNew
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue