sdlDelEventWatch function

void sdlDelEventWatch(
  1. Pointer<NativeFunction<SdlEventFilter>> filter,
  2. Pointer<NativeType> userdata
)

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.

\param filter the function originally passed to SDL_AddEventWatch() \param userdata the pointer originally passed to SDL_AddEventWatch()

\since This function is available since SDL 2.0.0.

\sa SDL_AddEventWatch

extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)

Implementation

void sdlDelEventWatch(Pointer<NativeFunction<SdlEventFilter>> filter,
    Pointer<NativeType> userdata) {
  final sdlDelEventWatchLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<NativeFunction<SdlEventFilter>> filter,
          Pointer<NativeType> userdata),
      void Function(Pointer<NativeFunction<SdlEventFilter>> filter,
          Pointer<NativeType> userdata)>('SDL_DelEventWatch');
  return sdlDelEventWatchLookupFunction(filter, userdata);
}