|
Size: 1284
Comment: minor change
|
Size: 1738
Comment: update content
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| ||'''filter'''||^the SDL_!EventFilter to be referenced/run ???^|| | ||'''filter'''||^the SDL_!EventFilter to be referenced/run ???^; see [[#Remarks|Remarks]] for details|| |
| Line 24: | Line 24: |
| <<Color2(green,There is currently no page for SDL_!EventFilter. Is it just a typedef? Should it be referenced in Remarks based on the [[SDL_SetEventFilter]]() info?)>> | <<Color2(green,There is currently no page for SDL_!EventFilter. Is it a macro or callback function? Should it be referenced in Remarks based on the [[SDL_SetEventFilter]]() info? See below...)>> <<Color2(green,Is userdata an exception to the 'pointer rule'?)>> |
| Line 34: | Line 36: |
| SDL_!EventFilter has the following syntax: {{{#!highlight cpp 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. See [[SDL_SetEventFilter]]() for more information. |
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 |
the SDL_!EventFilter to be referenced/run ???; see Remarks for details |
userdata |
a pointer to the user-specified information to be filtered |
green
green
Code Examples
You can add your code example here
Remarks
You can add useful comments here
SDL_EventFilter has the following syntax:
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.
See SDL_SetEventFilter() for more information.
