SDL_RemoveTimer function

SDL_RemoveTimer -- Removes a timer which was added with SDL_AddTimer.

Syntax

SDL_bool SDL_RemoveTimer(SDL_TimerID id);

Description

Removes a timer callback previously added with SDL_AddTimer.

Return value

SDL_FALSE

SDL_TRUE

See also

SDL_AddTimer

Example

   1 delay = (33 / 10) * 10;  /* To round it down to the nearest 10 ms */
   2 
   3 ...
   4 
   5 my_timer_id = SDL_AddTimer(delay, my_callbackfunc, my_callback_param);
   6 
   7 ...
   8 
   9 SDL_RemoveTimer(my_timer_id);

Requirements

Header

SDL.h

Version

1.2.13

Shared object

libSDL.so

DLL

SDL.dll


CategorySDLTime

SDL_RemoveTimer (last edited 2008-09-11 08:49:28 by NeoNeurone)