diff 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
line wrap: on
line diff
--- a/include/SDL_events.h	Tue Jul 20 00:57:01 2010 -0700
+++ b/include/SDL_events.h	Tue Jul 20 23:25:24 2010 -0700
@@ -132,7 +132,7 @@
     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 */