comparison include/SDL_keyboard.h @ 1507:1ff64ad478b2

Fixed bug #112 Added SDL_GetKeyRepeat()
author Sam Lantinga <slouken@libsdl.org>
date Mon, 13 Mar 2006 01:41:32 +0000
parents c71e05b4dc2e
children 782fd950bd46 c121d94672cb a1b03ba2fcd0
comparison
equal deleted inserted replaced
1506:dc057a602e98 1507:1ff64ad478b2
82 #define SDL_DEFAULT_REPEAT_INTERVAL 30 82 #define SDL_DEFAULT_REPEAT_INTERVAL 30
83 /* 83 /*
84 * If 'delay' is set to 0, keyboard repeat is disabled. 84 * If 'delay' is set to 0, keyboard repeat is disabled.
85 */ 85 */
86 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); 86 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
87 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
87 88
88 /* 89 /*
89 * Get a snapshot of the current state of the keyboard. 90 * Get a snapshot of the current state of the keyboard.
90 * Returns an array of keystates, indexed by the SDLK_* syms. 91 * Returns an array of keystates, indexed by the SDLK_* syms.
91 * Used: 92 * Used: