SDL_RemoveEventWatch - Man Page

Remove an event watch callback added with SDL_AddEventWatch().

Synopsis

#include <SDL3/SDL_events.h>

void SDL_RemoveEventWatch(SDL_EventFilter filter, void *userdata);

Description

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

Function Parameters

filter

the function originally passed to SDL_AddEventWatch().

userdata

the pointer originally passed to SDL_AddEventWatch().

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_AddEventWatch(3)

Referenced By

SDL_AddEventWatch(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS