Remove an event watch callback added with SDL_AddEventWatch().
Defined in <SDL3/SDL_events.h>
void SDL_RemoveEventWatch(SDL_EventFilter filter, void *userdata);
SDL_EventFilter | filter | the function originally passed to SDL_AddEventWatch(). |
void * | userdata | the pointer originally passed to SDL_AddEventWatch(). |
This function takes the same input as SDL_AddEventWatch() to identify and delete the corresponding callback.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.