Skip to content

Commit

Permalink
REVIEWED: GetGestureHoldDuration() comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 21, 2024
1 parent f60c6d4 commit f4cbc1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/raylib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ RLAPI int GetTouchPointCount(void); // Get number of t
RLAPI void SetGesturesEnabled(unsigned int flags); // Enable a set of gestures using flags
RLAPI bool IsGestureDetected(unsigned int gesture); // Check if a gesture have been detected
RLAPI int GetGestureDetected(void); // Get latest detected gesture
RLAPI float GetGestureHoldDuration(void); // Get gesture hold time in milliseconds
RLAPI float GetGestureHoldDuration(void); // Get gesture hold time in seconds
RLAPI Vector2 GetGestureDragVector(void); // Get gesture drag vector
RLAPI float GetGestureDragAngle(void); // Get gesture drag angle
RLAPI Vector2 GetGesturePinchVector(void); // Get gesture pinch delta
Expand Down
4 changes: 2 additions & 2 deletions src/rgestures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(&currentTime);

time = (double)currentTime/clockFrequency; // Time in seconds
Expand Down

0 comments on commit f4cbc1f

Please sign in to comment.