Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-02-16 00:03:40
Size: 947
Editor: SheenaSmith
Comment: create page - 2/15 changeset 5298 (since 5146)
Revision 2 as of 2011-02-16 18:12:14
Size: 940
Editor: SheenaSmith
Comment: update content - change param descriptions
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''filter'''||a function that gets called when an event happens; see [[#Remarks|Remarks]] for details|| ||'''filter'''||the function to call when an event happens; see [[#Remarks|Remarks]] for details||

DRAFT

SDL_AddEventWatch

Use this function to add a function which is called when an event is added to the queue.

Syntax

void SDL_AddEventWatch(SDL_EventFilter filter,
                       void*           userdata)

Function Parameters

filter

the function to call when an event happens; see Remarks for details

userdata

a pointer to the event queue to watch

Code Examples

You can add your code example here

Remarks

The function prototype for filter is:

int YourEventFilter(void*      userdata,
                    SDL_Event* event)

You can add useful comments here


CategoryAPI, CategoryEvents

None: SDL_AddEventWatch (last edited 2015-10-29 22:15:12 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit