|
⇤ ← Revision 1 as of 2011-02-16 00:03:40
Size: 947
Comment: create page - 2/15 changeset 5298 (since 5146)
|
Size: 940
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
