Differences between version 2 and previous revision of SDL_SetEventFilter(3).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:48 pm | by perry | Revert |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:48 pm | by perry | Revert |
@@ -1,22 +1,22 @@
-SDL_SetEventFilter
-!!!SDL_SetEventFilter
+SDL_!
SetEventFilter
+!!!SDL_!
SetEventFilter
NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
----
!!NAME
-SDL_SetEventFilter- Sets up a filter to process all events before they are posted to the event queue.
+SDL_!
SetEventFilter- Sets up a filter to process all events before they are posted to the event queue.
!!SYNOPSIS
__#include __
-__void SDL_SetEventFilter__(__SDL_EventFilter
+__void SDL_!
SetEventFilter__(__SDL_!
EventFilter
filter__);
!!DESCRIPTION
@@ -25,9 +25,9 @@
and flexible feature. The filter is prototyped
as:
-typedef int (*SDL_EventFilter)(const SDL_Event *event);
+typedef int (*SDL_!
EventFilter)(const SDL_Event *event);
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. This allows selective filtering of dynamically.
There is one caveat when dealing with the
@@ -42,10 +42,10 @@
__Note:__
-Events pushed onto the queue with __SDL_PushEvent__ or
-__SDL_PeepEvents__ do not get passed through the event
+Events pushed onto the queue with __SDL_!
PushEvent__ or
+__SDL_!
PeepEvents__ do not get passed through the event
filter.
__Note:__
@@ -56,7 +56,7 @@
it.
!!SEE ALSO
-__SDL_Event__, __SDL_GetEventFilter__,
-__SDL_PushEvent__
+__SDL_Event__, __SDL_!
GetEventFilter__,
+__SDL_!
PushEvent__
----