|
Size: 1361
Comment: minor change - 2/14 changeset 5295
|
Size: 598
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.
Contents
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.
