Added a WindowID to the user event and cleaned up a little bit of formating

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402370
This commit is contained in:
Bob Pendleton 2007-06-20 00:01:04 +00:00
parent ed60e3a7d4
commit 5bb1d2ceb7
2 changed files with 6 additions and 5 deletions

View file

@ -278,10 +278,11 @@ typedef struct SDL_QuitEvent
*/ */
typedef struct SDL_UserEvent typedef struct SDL_UserEvent
{ {
Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
int code; /**< User defined event code */ int code; /**< User defined event code */
void *data1; /**< User defined data pointer */ void *data1; /**< User defined data pointer */
void *data2; /**< User defined data pointer */ void *data2; /**< User defined data pointer */
SDL_WindowID windowID; /**< The associated window if any*/
} SDL_UserEvent; } SDL_UserEvent;
/** /**

View file

@ -160,7 +160,7 @@ typedef enum
SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */ SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */
SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */ SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */
SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */ SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */
SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */ SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */
} SDL_WindowEventID; } SDL_WindowEventID;
/** /**