|
Size: 1223
Comment: update content - 2/14 changeset 5295
|
Size: 1146
Comment: remove green comment
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 40: | Line 40: |
| <<Color2(green,I don't think that math works... 33/10*10 is still 33.)>> |
DRAFT |
SDL_RemoveTimer
Use this function to remove a timer, created with [[SDL_AddTimer]](), knowing its ID.
green
Contents
Syntax
SDL_bool SDL_RemoveTimer(SDL_TimerID t)
Function Parameters
t |
the ID of the timer to remove |
Return Value
Returns a boolean value indicating success or failure.
-or-
Returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError() for more information. green
Code Examples
delay = (33 / 10) * 10; /* To round it down to the nearest 10 ms */
...
my_timer_id = SDL_AddTimer(delay, my_callbackfunc, my_callback_param);
...
SDL_RemoveTimer(my_timer_id);
Remarks
It is not safe to remove a timer multiple times.
