table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.28+ds-1
- unstable 3.2.30+ds-1
- experimental 3.3.6+git20251229~95ac0ff+ds-1
| SDL_EventFilter(3type) | SDL3 DATATYPES | SDL_EventFilter(3type) |
NAME¶
SDL_EventFilter - A function pointer used for callbacks that watch the event queue.
SYNOPSIS¶
#include <SDL3/SDL_events.h>
typedef bool (SDLCALL *SDL_EventFilter)(void *userdata, SDL_Event *event);
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns true to permit event to be added to the queue, and false to disallow it. When used with SDL_AddEventWatch, the return value is ignored.
THREAD SAFETY¶
SDL may call this callback at any time from any thread; the application is responsible for locking resources the callback touches that need to be protected.
AVAILABILITY¶
This datatype is available since SDL 3.2.0.
SEE ALSO¶
| SDL 3.2.30 | Simple Directmedia Layer |