Remove an event watch callback added with SDL_AddEventWatch().
void SDL_DelEventWatch(SDL_EventFilter filter,
void *userdata);
filter | the function originally passed to SDL_AddEventWatch() |
userdata | the pointer originally passed to SDL_AddEventWatch() |
This function takes the same input as SDL_AddEventWatch() to identify and delete the corresponding callback.
This function is available since SDL 3.0.0.