Function SDL_RemoveEventWatch

pub unsafe extern "C" fn SDL_RemoveEventWatch(
    filter: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut SDL_Event) -> bool>,
    userdata: *mut c_void,
)
Available on crate feature dep_sdl3 only.
Expand description

Remove an event watch callback added with SDL_AddEventWatch().

This function takes the same input as SDL_AddEventWatch() to identify and delete the corresponding callback.

§Parameters

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also