浏览代码

Reset pointCount for gestures

Ray 9 年之前
父节点
当前提交
d6bc7b8877
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/gestures.c

+ 2 - 0
src/gestures.c

@@ -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;
         }
         }