Reset pointCount for gestures

This commit is contained in:
Ray
2016-03-16 17:51:21 +01:00
parent ee52b13ae6
commit d6bc7b8877

View File

@@ -179,6 +179,7 @@ void ProcessGestureEvent(GestureEvent event)
} }
touchDownDragPosition = (Vector2){ 0.0f, 0.0f }; touchDownDragPosition = (Vector2){ 0.0f, 0.0f };
pointCount = 0;
} }
else if (event.touchAction == TOUCH_MOVE) else if (event.touchAction == TOUCH_MOVE)
{ {
@@ -257,6 +258,7 @@ void ProcessGestureEvent(GestureEvent event)
pinchDistance = 0.0f; pinchDistance = 0.0f;
pinchAngle = 0.0f; pinchAngle = 0.0f;
pinchVector = (Vector2){ 0.0f, 0.0f }; pinchVector = (Vector2){ 0.0f, 0.0f };
pointCount = 0;
currentGesture = GESTURE_NONE; currentGesture = GESTURE_NONE;
} }