Added a WindowID to the user event and cleaned up a little bit of formating
authorBob Pendleton <bob@pendleton.com>
Wed, 20 Jun 2007 00:01:04 +0000
changeset 213155c7932d1fdb
parent 2130 3ee59c43d784
child 2132 46648dc418ec
Added a WindowID to the user event and cleaned up a little bit of formating
include/SDL_events.h
include/SDL_video.h
     1.1 --- a/include/SDL_events.h	Tue Jun 19 05:53:56 2007 +0000
     1.2 +++ b/include/SDL_events.h	Wed Jun 20 00:01:04 2007 +0000
     1.3 @@ -278,10 +278,11 @@
     1.4   */
     1.5  typedef struct SDL_UserEvent
     1.6  {
     1.7 -    Uint8 type;         /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
     1.8 -    int code;           /**< User defined event code */
     1.9 -    void *data1;        /**< User defined data pointer */
    1.10 -    void *data2;        /**< User defined data pointer */
    1.11 +    Uint8 type;             /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
    1.12 +    int code;               /**< User defined event code */
    1.13 +    void *data1;            /**< User defined data pointer */
    1.14 +    void *data2;            /**< User defined data pointer */
    1.15 +    SDL_WindowID windowID;  /**< The associated window if any*/
    1.16  } SDL_UserEvent;
    1.17  
    1.18  /**
     2.1 --- a/include/SDL_video.h	Tue Jun 19 05:53:56 2007 +0000
     2.2 +++ b/include/SDL_video.h	Wed Jun 20 00:01:04 2007 +0000
     2.3 @@ -160,7 +160,7 @@
     2.4      SDL_WINDOWEVENT_LEAVE,              /**< The window has lost mouse focus */
     2.5      SDL_WINDOWEVENT_FOCUS_GAINED,       /**< The window has gained keyboard focus */
     2.6      SDL_WINDOWEVENT_FOCUS_LOST,         /**< The window has lost keyboard focus */
     2.7 -    SDL_WINDOWEVENT_CLOSE,                              /**< The window manager requests that the window be closed */
     2.8 +    SDL_WINDOWEVENT_CLOSE,              /**< The window manager requests that the window be closed */
     2.9  } SDL_WindowEventID;
    2.10  
    2.11  /**