diff include/SDL_events.h @ 1686:8d7fecceb9ef SDL-1.3

Added the unicode keysym memory again for backwards compatibility.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jun 2006 13:47:19 +0000
parents 9857d21967bb
children 5daa04d862f1
line wrap: on
line diff
--- a/include/SDL_events.h	Sun Jun 18 07:31:45 2006 +0000
+++ b/include/SDL_events.h	Sun Jun 18 13:47:19 2006 +0000
@@ -129,7 +129,7 @@
 /**
  * \struct SDL_KeyboardEvent
  *
- * \brief Keyboard event structure
+ * \brief Keyboard button event structure
  */
 typedef struct SDL_KeyboardEvent
 {
@@ -141,6 +141,19 @@
 } SDL_KeyboardEvent;
 
 /**
+ * \struct SDL_CharEvent
+ *
+ * \brief Keyboard input event structure
+ */
+typedef struct SDL_CharEvent
+{
+    Uint8 type;             /**< SDL_CHARINPUT (FIXME: NYI) */
+    Uint8 which;            /**< The keyboard device index */
+    char text[32];          /**< The input text */
+    SDL_WindowID windowID;  /**< The window with keyboard focus, if any */
+} SDL_CharEvent;
+
+/**
  * \struct SDL_MouseMotionEvent
  *
  * \brief Mouse motion event structure
@@ -364,7 +377,7 @@
 
   The filter is protypted as:
 */
-typedef int (SDLCALL * SDL_EventFilter) (const SDL_Event * event);
+typedef int (SDLCALL * SDL_EventFilter) (SDL_Event * event);
 /*
   If the filter returns 1, then the event will be added to the internal queue.
   If it returns 0, then the event will be dropped from the queue, but the