Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2011-02-14 20:23:05
Size: 1361
Editor: SheenaSmith
Comment: minor change - 2/14 changeset 5295
Revision 5 as of 2013-08-08 18:27:35
Size: 598
Editor: Sam Lantinga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 16: Line 15:
Returns a 32-bit value representing the number of milliseconds since the SDL library initialized.   ''-or-''

*<<BR>>Returns an unsigned 32 bit integer number. The returned value represents the number of milliseconds since SDL library initialization. <<BR>>*
Returns an unsigned 32-bit value representing the number of milliseconds since the SDL library initialized.
Line 30: Line 25:
*<<BR>>
{i} 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. <<BR>>*

== Related Functions ==
 .[[SDL_Delay]] * <<Color2(green,This isn't reciprocal yet.)>>

SDL_GetTicks

Use this function to get the number of milliseconds since the SDL library initialization.

Syntax

Uint32 SDL_GetTicks(void)

Return Value

Returns an unsigned 32-bit value representing the number of milliseconds since the SDL library initialized.

Code Examples

You can add your code example here

Remarks

This value wraps if the program runs for more than ~49 days.


CategoryAPI, CategoryTimer

None: SDL_GetTicks (last edited 2013-12-07 13:13:16 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit