Improved gestures system
This commit is contained in:
parent
2e5d898443
commit
17eefed08f
1 changed files with 12 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue