Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
SDL_AddTimer(3) | SDL API Reference | SDL_AddTimer(3) |
NAME
SDL_AddTimer - Add a timer which will call a callback after the specified number of milliseconds has elapsed.SYNOPSIS
#include "SDL.h"CALLBACK
/* type definition for the "new" timer callback function */
typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);
DESCRIPTION
Adds a callback function to be run after the specified number of milliseconds has elapsed. The callback function is passed the current timer interval and the user supplied parameter from the SDL_AddTimer call and returns the next timer interval. If the returned value from the callback is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled.RETURN VALUE
Returns an ID value for the added timer or NULL if there was an error.SEE ALSO
SDL_RemoveTimer, SDL_PushEventTue 11 Sep 2001, 23:01 | SDL |