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
- On error
SDL_TRUE
- On success
See also
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 |
