|
Size: 1154
Comment: minor change
|
Size: 1492
Comment: minor change for consistency
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 33: | Line 33: |
| *<<Color2(green,This functions appears to have changed dramatically since 1.2. Is that correct?)>>* | *<<BR>><<Color2(green,This functions appears to have changed dramatically since 1.2. Is that correct?)>><<BR>>* <<Color2(green,Should the following be included here as it is in [[SDL_SetEventFilter]]()?)>> 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. |
DRAFT |
SDL_GetEventFilter
Use this function to return the current event filter.
Contents
Syntax
SDL_bool SDL_GetEventFilter(SDL_EventFilter* filter,
void** userdata)
Function Parameters
filter |
a pointer to fill in with the function to call when an event happens ??? |
userdata |
a pointer to a pointer filled in with user-specified data |
Return Value
Returns the current event filter. If there is no event filter set, this function returns SDL_FALSE.
green
Code Examples
You can add your code example here
Remarks
Can be used to "chain" filters.
*
green
*
green
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.
