Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added a WindowID to the user event and cleaned up a little bit of for…
Browse files Browse the repository at this point in the history
…mating
  • Loading branch information
pendletonrc committed Jun 20, 2007
1 parent 4a3c0bb commit 645bee0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions include/SDL_events.h
Expand Up @@ -278,10 +278,11 @@ typedef struct SDL_QuitEvent
*/
typedef struct SDL_UserEvent
{
Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
int code; /**< User defined event code */
void *data1; /**< User defined data pointer */
void *data2; /**< User defined data pointer */
Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */
int code; /**< User defined event code */
void *data1; /**< User defined data pointer */
void *data2; /**< User defined data pointer */
SDL_WindowID windowID; /**< The associated window if any*/
} SDL_UserEvent;

/**
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_video.h
Expand Up @@ -160,7 +160,7 @@ typedef enum
SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */
SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained 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;

/**
Expand Down

0 comments on commit 645bee0

Please sign in to comment.