comparison 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
comparison
equal deleted inserted replaced
2128:04e9ad5318dc 2129:047245361002
61 #define SDL_VIDEORESIZEMASK SDL_EVENTMASK(SDL_VIDEORESIZE) 61 #define SDL_VIDEORESIZEMASK SDL_EVENTMASK(SDL_VIDEORESIZE)
62 #define SDL_VIDEOEXPOSEMASK SDL_EVENTMASK(SDL_VIDEOEXPOSE) 62 #define SDL_VIDEOEXPOSEMASK SDL_EVENTMASK(SDL_VIDEOEXPOSE)
63 63
64 #define SDL_BUTTON_WHEELUP 4 64 #define SDL_BUTTON_WHEELUP 4
65 #define SDL_BUTTON_WHEELDOWN 5 65 #define SDL_BUTTON_WHEELDOWN 5
66
67 #define SDL_DEFAULT_REPEAT_DELAY 500
68 #define SDL_DEFAULT_REPEAT_INTERVAL 30
66 69
67 typedef struct SDL_VideoInfo 70 typedef struct SDL_VideoInfo
68 { 71 {
69 Uint32 hw_available:1; 72 Uint32 hw_available:1;
70 Uint32 wm_available:1; 73 Uint32 wm_available:1;
171 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay); 174 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
172 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay, 175 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
173 SDL_Rect * dstrect); 176 SDL_Rect * dstrect);
174 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); 177 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
175 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); 178 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
179 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
180 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
176 181
177 /* Ends C function definitions when using C++ */ 182 /* Ends C function definitions when using C++ */
178 #ifdef __cplusplus 183 #ifdef __cplusplus
179 /* *INDENT-OFF* */ 184 /* *INDENT-OFF* */
180 } 185 }