Pārlūkot izejas kodu

REVIEWED: `IsGestureDetected()` parameter type

pull/3350/head
Ray pirms 1 gada
vecāks
revīzija
f27ea1f0c8
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      src/raylib.h
  2. +1
    -1
      src/rgestures.h

+ 1
- 1
src/raylib.h Parādīt failu

@ -1163,7 +1163,7 @@ RLAPI int GetTouchPointCount(void); // Get number of t
// Gestures and Touch Handling Functions (Module: rgestures)
//------------------------------------------------------------------------------------
RLAPI void SetGesturesEnabled(unsigned int flags); // Enable a set of gestures using flags
RLAPI bool IsGestureDetected(int gesture); // Check if a gesture have been detected
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 Vector2 GetGestureDragVector(void); // Get gesture drag vector

+ 1
- 1
src/rgestures.h Parādīt failu

@ -255,7 +255,7 @@ void SetGesturesEnabled(unsigned int flags)
}
// Check if a gesture have been detected
bool IsGestureDetected(int gesture)
bool IsGestureDetected(unsigned int gesture)
{
if ((GESTURES.enabledFlags & GESTURES.current) == gesture) return true;
else return false;

Notiek ielāde…
Atcelt
Saglabāt