SDL Wiki
(This is the legacy documentation for SDL2, the previous stable version; SDL3 is the current stable version.)

SDL_EventFilter

A function pointer used for callbacks that watch the event queue.

Header File

Defined in SDL_events.h

Syntax

typedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);

Function Parameters

userdata what was passed as userdata to SDL_SetEventFilter() or SDL_AddEventWatch, etc.
event the event that triggered the callback.

Return Value

Returns 1 to permit event to be added to the queue, and 0 to disallow it. When used with SDL_AddEventWatch, the return value is ignored.

See Also


CategoryAPI, CategoryAPIDatatype, CategoryEvents


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.