sdlRemoveTimer function

bool sdlRemoveTimer(
  1. int id
)

Remove a timer created with SDL_AddTimer().

\param id the ID of the timer to remove. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_AddTimer

extern SDL_DECLSPEC bool SDLCALL SDL_RemoveTimer(SDL_TimerID id)

Implementation

bool sdlRemoveTimer(int id) {
  final sdlRemoveTimerLookupFunction =
      libSdl3.lookupFunction<Uint8 Function(Uint32 id), int Function(int id)>(
          'SDL_RemoveTimer');
  return sdlRemoveTimerLookupFunction(id) == 1;
}