Function sdl2_sys::SDL_GetEventFilter
source · pub unsafe extern "C" fn SDL_GetEventFilter(
filter: *mut SDL_EventFilter,
userdata: *mut *mut c_void,
) -> SDL_bool
Expand description
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 SDL_TRUE on success or SDL_FALSE if there is no event filter set.
\since This function is available since SDL 2.0.0.
\sa SDL_SetEventFilter