Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_UserEvent(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!UserEvent !!!SDL_!UserEvent NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION EXAMPLES SEE ALSO ---- !!NAME SDL_!UserEvent- A user-defined event type !!STRUCTURE DEFINITION typedef struct{ Uint8 type; int code; void *data1; void *data2; } SDL_!UserEvent; !!STRUCTURE DATA __type SDL_USEREVENT__ through to __SDL_NUMEVENTS-1__ __code__ User defined event code __data1__ User defined data pointer __data2__ User defined data pointer !!DESCRIPTION __SDL_!UserEvent__ is in the __user__ member of the structure __SDL_Event__. This event is unique, it is never created by SDL but only by the user. The event can be pushed onto the event queue using __SDL_!PushEvent__. The contents of the structure members or completely up to the programmer, the only requirement is that __type__ is a value from __SDL_USEREVENT__ to __SDL_NUMEVENTS-1__ (inclusive). !!EXAMPLES SDL_Event event; event.type = SDL_USEREVENT; event.user.code = my_event_code; event.user.data1 = significant_data; event.user.data2 = 0; SDL_!PushEvent( !!SEE ALSO __SDL_Event__, __SDL_!PushEvent__ ----
One page links to
SDL_UserEvent(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.