DOKK / manpages / debian 13 / libsdl3-doc / SDL_RemoveEventWatch.3.en
SDL_RemoveEventWatch(3) SDL3 FUNCTIONS SDL_RemoveEventWatch(3)

SDL_RemoveEventWatch - Remove an event watch callback added with SDL_AddEventWatch ().

Defined in SDL3/SDL_events.h

#include "SDL3/SDL.h"
void SDL_RemoveEventWatch(SDL_EventFilter filter, void *userdata);

This function takes the same input as

SDL_AddEventWatch () to identify and delete the corresponding callback.

the function originally passed to SDL_AddEventWatch ().
the pointer originally passed to SDL_AddEventWatch ().

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

(3), SDL_AddEventWatch(3)

SDL 3.2.10 Simple Directmedia Layer