logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This datatype is available since SDL 3.2.0.

Function Parameters

userdata
              what was passed as userdata to SDL_SetEventFilter() or SDL_AddEventWatch, etc.

       event  the event that triggered the callback.

Name

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

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.

See Also

SDL_SetEventFilter(3), SDL_AddEventWatch(3)

Simple Directmedia Layer                           SDL 3.2.20                             SDL_EventFilter(3type)

Synopsis

#include<SDL3/SDL_events.h>typedefbool(SDLCALL*SDL_EventFilter)(void*userdata,SDL_Event*event);

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.

See Also