SDL Wiki
(This is the legacy documentation for stable SDL2, the current stable version; SDL3 is the current development version.)


Function prototype for the timer callback function.

Header File

Defined in SDL_timer.h


typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param);


The callback function is passed the current timer interval and returns the next timer interval. If the returned value is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled. If the callback returns 0, the periodic alarm is cancelled.

CategoryAPI, CategoryAPIDatatype, CategoryTimer

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.