REVIEWED: GetGestureHoldDuration() comments
This commit is contained in:
parent
f60c6d472c
commit
f4cbc1fbae
2 changed files with 3 additions and 3 deletions
|
|
@ -434,7 +434,7 @@ int GetGestureDetected(void)
|
|||
return (GESTURES.enabledFlags & GESTURES.current);
|
||||
}
|
||||
|
||||
// Hold time measured in ms
|
||||
// Hold time measured in seconds
|
||||
float GetGestureHoldDuration(void)
|
||||
{
|
||||
// NOTE: time is calculated on current gesture HOLD
|
||||
|
|
@ -517,7 +517,7 @@ static double rgGetCurrentTime(void)
|
|||
#if defined(_WIN32)
|
||||
unsigned long long int clockFrequency, currentTime;
|
||||
|
||||
QueryPerformanceFrequency(&clockFrequency); // BE CAREFUL: Costly operation!
|
||||
QueryPerformanceFrequency(&clockFrequency); // BE CAREFUL: Costly operation!
|
||||
QueryPerformanceCounter(¤tTime);
|
||||
|
||||
time = (double)currentTime/clockFrequency; // Time in seconds
|
||||
|
|
|
|||
Loading…
Reference in a new issue