include/SDL_events.h
changeset 2300 c97ad1abe05b
parent 2152 003c1b5b07da
child 2674 f1d07ba2e275
child 2710 44e49d3fa6cf
child 3760 64f346a83ed3
     1.1 --- a/include/SDL_events.h	Sat Jan 12 18:07:06 2008 +0000
     1.2 +++ b/include/SDL_events.h	Tue Jan 15 22:37:17 2008 +0000
     1.3 @@ -149,12 +149,13 @@
     1.4   *
     1.5   * \brief Keyboard text input event structure (event.text.*)
     1.6   */
     1.7 +#define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
     1.8  typedef struct SDL_TextInputEvent
     1.9  {
    1.10 -    Uint8 type;             /**< SDL_TEXTINPUT */
    1.11 -    Uint8 which;            /**< The keyboard device index */
    1.12 -    char text[32];          /**< The input text */
    1.13 -    SDL_WindowID windowID;  /**< The window with keyboard focus, if any */
    1.14 +    Uint8 type;                               /**< SDL_TEXTINPUT */
    1.15 +    Uint8 which;                              /**< The keyboard device index */
    1.16 +    char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];  /**< The input text */
    1.17 +    SDL_WindowID windowID;                    /**< The window with keyboard focus, if any */
    1.18  } SDL_TextInputEvent;
    1.19  
    1.20  /**
    1.21 @@ -325,10 +326,10 @@
    1.22      Uint8 type;                     /**< Event type, shared with all events */
    1.23      SDL_WindowEvent window;         /**< Window event data */
    1.24      SDL_KeyboardEvent key;          /**< Keyboard event data */
    1.25 -    SDL_TextInputEvent text;                    /**< Text input event data */
    1.26 +    SDL_TextInputEvent text;        /**< Text input event data */
    1.27      SDL_MouseMotionEvent motion;    /**< Mouse motion event data */
    1.28      SDL_MouseButtonEvent button;    /**< Mouse button event data */
    1.29 -    SDL_MouseWheelEvent wheel;                  /**< Mouse wheel event data */
    1.30 +    SDL_MouseWheelEvent wheel;      /**< Mouse wheel event data */
    1.31      SDL_JoyAxisEvent jaxis;         /**< Joystick axis event data */
    1.32      SDL_JoyBallEvent jball;         /**< Joystick ball event data */
    1.33      SDL_JoyHatEvent jhat;           /**< Joystick hat event data */