|
⇤ ← Revision 1 as of 2010-05-14 23:17:00
Size: 1253
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 1283
Comment: update content
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to run the filter function on the current event queue, removing any events for which the filter returns 0. | Use this function to run the filter function on the current event queue, removing any events for which the filter returns 0. <<Color2(green,I suspect that the perspective in the header where this was taken from was different and it should read:)>> Use this function to filter the current event queue, removing any events for which the filter returns 0. |
| Line 17: | Line 21: |
| ||'''filter'''||^typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event); ??? the SDL_!EventFilter to be referenced/run ???^|| ||'''userdata'''||^a pointer filled with user-specified information to be filtered^|| |
||'''filter'''||the SDL_!EventFilter to be referenced/run ???^|| ||'''userdata'''||^a pointer to the user-specified information to be filtered^|| |
| Line 20: | Line 24: |
| == Return Value == If the filter returns 1, then the event will be added to the internal queue. If it returns 0, then the event will be dropped from the queue, but the internal state will still be updated. This allows selective filtering of dynamically arriving events. <<Color2(green,Is this really a RV or just a note on how to set it up?)>> |
<<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?)>> |
| Line 34: | Line 35: |
| .[[SDL_GetEventFilter]] ??? .[[SDL_SetEventFilter]] ??? |
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 ???^ |
userdata |
a pointer to the user-specified information to be filtered |
green
Code Examples
You can add your code example here
Remarks
You can add useful comments here
