Query: sdl_userevent
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SDL_UserEvent(3) SDL API Reference SDL_UserEvent(3)NAMESDL_UserEvent- A user-defined event typeSTRUCTURE DEFINITIONtypedef struct{ Uint8 type; int code; void *data1; void *data2; } SDL_UserEvent;STRUCTURE DATAtype SDL_USEREVENT through to SDL_NUMEVENTS-1 code User defined event code data1 User defined data pointer data2 User defined data pointerDESCRIPTIONSDL_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).EXAMPLESSDL_Event event; event.type = SDL_USEREVENT; event.user.code = my_event_code; event.user.data1 = significant_data; event.user.data2 = 0; SDL_PushEvent(&event);SEE ALSOSDL_Event, SDL_PushEventSDLTue 11 Sep 2001, 23:00 SDL_UserEvent(3)
Related Man Pages |
---|
sdl_mousemotionevent(3) - opensolaris |
sdl_event(3) - centos |
sdl_seteventfilter(3) - centos |
sdl_mousemotionevent(3) - suse |
sdl_seteventfilter(3) - suse |
Similar Topics in the Unix Linux Community |
---|
Make all words begin with capital letter? |
Docker learning Phase-I |
Issue with "rsh" on RedHat |
Issue with events occuring in DST window |
[TIP] Processing YAML files with yq |