Improved gestures system

This commit is contained in:
raysan5
2016-04-17 11:36:40 +02:00
parent 2e5d898443
commit 17eefed08f
5 changed files with 12 additions and 14 deletions

View File

@@ -292,14 +292,14 @@ void UpdateGestures(void)
}
// Check if a gesture have been detected
bool IsGestureDetected(void)
bool IsGestureDetected(int gesture)
{
if ((enabledGestures & currentGesture) != GESTURE_NONE) return true;
if ((enabledGestures & currentGesture) == gesture) return true;
else return false;
}
// Check gesture type
int GetGestureType(void)
int GetGestureDetected(void)
{
// Get current gesture only if enabled
return (enabledGestures & currentGesture);