comparison include/SDL_events.h @ 4560:95352c671a6e

Added support for keyboard repeat (only tested on Windows so far)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Jul 2010 23:25:24 -0700
parents 524dfefd554c
children 0a07d002f10b
comparison
equal deleted inserted replaced
4559:f8c3870af5a2 4560:95352c671a6e
130 typedef struct SDL_KeyboardEvent 130 typedef struct SDL_KeyboardEvent
131 { 131 {
132 Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */ 132 Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */
133 Uint32 windowID; /**< The window with keyboard focus, if any */ 133 Uint32 windowID; /**< The window with keyboard focus, if any */
134 Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */ 134 Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
135 Uint8 padding1; 135 Uint8 repeat; /**< Non-zero if this is a key repeat */
136 Uint8 padding2; 136 Uint8 padding2;
137 Uint8 padding3; 137 Uint8 padding3;
138 SDL_keysym keysym; /**< The key that was pressed or released */ 138 SDL_keysym keysym; /**< The key that was pressed or released */
139 } SDL_KeyboardEvent; 139 } SDL_KeyboardEvent;
140 140