sdlRemoveTimer function

bool sdlRemoveTimer(
  1. int id
)

Remove a timer created with SDL_AddTimer().

\param id the ID of the timer to remove \returns SDL_TRUE if the timer is removed or SDL_FALSE if the timer wasn't found.

\since This function is available since SDL 2.0.0.

\sa SDL_AddTimer

extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id)

Implementation

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