Added support for keyboard repeat (only tested on Windows so far)

This commit is contained in:
Sam Lantinga 2010-07-20 23:25:24 -07:00
parent 871f32561d
commit 0e59ffc802
8 changed files with 57 additions and 47 deletions

View file

@ -132,7 +132,7 @@ typedef struct SDL_KeyboardEvent
Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
Uint32 windowID; /**< The window with keyboard focus, if any */
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
Uint8 padding1;
Uint8 repeat; /**< Non-zero if this is a key repeat */
Uint8 padding2;
Uint8 padding3;
SDL_keysym keysym; /**< The key that was pressed or released */