Mercurial > sdl-ios-xcode
diff include/SDL_compat.h @ 2129:047245361002
Key repeat is handled by the OS, since text input is now decoupled from physical key events.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 16 Jun 2007 15:32:04 +0000 |
parents | adf732f1f016 |
children | 003c1b5b07da |
line wrap: on
line diff
--- a/include/SDL_compat.h Sat Jun 16 05:52:34 2007 +0000 +++ b/include/SDL_compat.h Sat Jun 16 15:32:04 2007 +0000 @@ -64,6 +64,9 @@ #define SDL_BUTTON_WHEELUP 4 #define SDL_BUTTON_WHEELDOWN 5 +#define SDL_DEFAULT_REPEAT_DELAY 500 +#define SDL_DEFAULT_REPEAT_INTERVAL 30 + typedef struct SDL_VideoInfo { Uint32 hw_available:1; @@ -173,6 +176,8 @@ SDL_Rect * dstrect); extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); /* Ends C function definitions when using C++ */ #ifdef __cplusplus