minor change - 2/14 changeset 5295
|Deletions are marked like this.||Additions are marked like this.|
|Line 28:||Line 28:|
|Note that this value wraps if the program runs for more than ~49 days.||This value wraps if the program runs for more than ~49 days.|
Use this function to get the number of milliseconds since the SDL library initialization.
Returns a 32-bit value representing the number of milliseconds since the SDL library initialized.
Returns an unsigned 32 bit integer number. The returned value represents the number of milliseconds since SDL library initialization.
You can add your code example here
This value wraps if the program runs for more than ~49 days.
This function can be used to build a double click handling routine. In fact, there is currently no such mouse event in the SDL event subsystem. One solution consists of calculating the interval between two mouse clicks by saving the values returned by SDL_GetTicks(). Then if the difference between two values returned by SDL_GetTicks() is inside a predefined threshold, the application can fire a software double click event.
SDL_Delay * green