include/SDL_events.h
branchSDL-1.3
changeset 1686 8d7fecceb9ef
parent 1669 9857d21967bb
child 1722 5daa04d862f1
     1.1 --- a/include/SDL_events.h	Sun Jun 18 07:31:45 2006 +0000
     1.2 +++ b/include/SDL_events.h	Sun Jun 18 13:47:19 2006 +0000
     1.3 @@ -129,7 +129,7 @@
     1.4  /**
     1.5   * \struct SDL_KeyboardEvent
     1.6   *
     1.7 - * \brief Keyboard event structure
     1.8 + * \brief Keyboard button event structure
     1.9   */
    1.10  typedef struct SDL_KeyboardEvent
    1.11  {
    1.12 @@ -141,6 +141,19 @@
    1.13  } SDL_KeyboardEvent;
    1.14  
    1.15  /**
    1.16 + * \struct SDL_CharEvent
    1.17 + *
    1.18 + * \brief Keyboard input event structure
    1.19 + */
    1.20 +typedef struct SDL_CharEvent
    1.21 +{
    1.22 +    Uint8 type;             /**< SDL_CHARINPUT (FIXME: NYI) */
    1.23 +    Uint8 which;            /**< The keyboard device index */
    1.24 +    char text[32];          /**< The input text */
    1.25 +    SDL_WindowID windowID;  /**< The window with keyboard focus, if any */
    1.26 +} SDL_CharEvent;
    1.27 +
    1.28 +/**
    1.29   * \struct SDL_MouseMotionEvent
    1.30   *
    1.31   * \brief Mouse motion event structure
    1.32 @@ -364,7 +377,7 @@
    1.33  
    1.34    The filter is protypted as:
    1.35  */
    1.36 -typedef int (SDLCALL * SDL_EventFilter) (const SDL_Event * event);
    1.37 +typedef int (SDLCALL * SDL_EventFilter) (SDL_Event * event);
    1.38  /*
    1.39    If the filter returns 1, then the event will be added to the internal queue.
    1.40    If it returns 0, then the event will be dropped from the queue, but the