DRAFT |
SDL_FilterEvents
Use this function to run the filter function on the current event queue, removing any events for which the filter returns 0.
green
Use this function to filter the current event queue, removing any events for which the filter returns 0.
Syntax
void SDL_FilterEvents(SDL_EventFilter filter,
void* userdata)
Function Parameters
filter |
a function that gets called when an event happens; see Remarks for details |
userdata |
a pointer filled in with user-specified information to be filtered |
Code Examples
You can add your code example here
Remarks
The filter function has the following form:
int SDL_EventFilter(void* userdata, SDL_Event* event)
where userdata is the event queue to filter and event is the desired event to pull from the queue. green
See SDL_SetEventFilter() for more information.
