.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL's wiki page for SDL_UserEvent:
.\"   https://wiki.libsdl.org/SDL_UserEvent
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision release-3.2.10-0-g877399b2b
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_UserEvent
.\" SDL can be found at https://libsdl.org/
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH SDL_UserEvent 3type "SDL 3.2.10" "Simple Directmedia Layer" "SDL3 DATATYPES"
.SH NAME
SDL_UserEvent \- A user-defined event type (event\[char46]user\[char46]*)
.SH HEADER FILE
Defined in SDL3/SDL_events\[char46]h

.SH SYNOPSIS
.nf
.B #include \(dqSDL3/SDL.h\(dq
.PP
.BI "typedef struct SDL_UserEvent
.BI "{
.BI "    Uint32 type;        /**< SDL_EVENT_USER through SDL_EVENT_LAST-1, Uint32 because these are not in the SDL_EventType enumeration */
.BI "    Uint32 reserved;
.BI "    Uint64 timestamp;   /**< In nanoseconds, populated using SDL_GetTicksNS() */
.BI "    SDL_WindowID windowID; /**< The associated window if any */
.BI "    Sint32 code;        /**< User defined event code */
.BI "    void *data1;        /**< User defined data pointer */
.BI "    void *data2;        /**< User defined data pointer */
.BI "} SDL_UserEvent;
.fi
.SH DESCRIPTION
This event is unique; it is never created by SDL, but only by the
application\[char46] The event can be pushed onto the event queue using

.BR SDL_PushEvent
()\[char46] The contents of the structure members are
completely up to the programmer; the only requirement is that '''type''' is
a value obtained from 
.BR SDL_RegisterEvents
()\[char46]

.SH AVAILABILITY
This struct is available since SDL 3\[char46]2\[char46]0\[char46]