sdlGetEventFilter function events
bool
sdlGetEventFilter(
- Pointer<
Pointer< filter,NativeFunction< >SdlEventFilter> > - Pointer<
Pointer< userdataNativeType> >
Query the current event filter.
This function can be used to "chain" filters, by saving the existing filter before replacing it with a function that will call that saved filter.
\param filter the current callback function will be stored here. \param userdata the pointer that is passed to the current event filter will be stored here. \returns true on success or false if there is no event filter set.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_SetEventFilter
extern SDL_DECLSPEC bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter, void **userdata)
Implementation
bool sdlGetEventFilter(
Pointer<Pointer<NativeFunction<SdlEventFilter>>> filter,
Pointer<Pointer<NativeType>> userdata,
) {
final sdlGetEventFilterLookupFunction = _libSdl
.lookupFunction<
Uint8 Function(
Pointer<Pointer<NativeFunction<SdlEventFilter>>> filter,
Pointer<Pointer<NativeType>> userdata,
),
int Function(
Pointer<Pointer<NativeFunction<SdlEventFilter>>> filter,
Pointer<Pointer<NativeType>> userdata,
)
>('SDL_GetEventFilter');
return sdlGetEventFilterLookupFunction(filter, userdata) == 1;
}