Tao.Sdl SDK Documentation

Sdl.SDL_EventFilter Delegate

This function sets up a filter to process all events before they change internal state and are posted to the internal event queue.

[Visual Basic]
Public Delegate Function Sdl.SDL_EventFilter( _
   ByVal evt As SDL_Event _
) As Integer
[C#]
public delegate int Sdl.SDL_EventFilter(
   SDL_Event evt
);

Parameters

evt
Event.

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. This allows selective filtering of dynamically.

Remarks

Binds to C callback in SDL_events.h:

typedef Uint32 (SDLCALL *SDL_EventFilter)(const SDL_Event *event)

Requirements

Namespace: Tao.Sdl

Assembly: Tao.Sdl (in Tao.Sdl.dll)

See Also

Tao.Sdl Namespace | SDL_SetEventFilter | SDL_GetEventFilter