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

SDL_TimerCallback

Function prototype for the timer callback function.

Header File

Defined in SDL_timer.h, but apps should only #include "SDL.h"!

Syntax

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

Remarks

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


[ 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.