aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-03-16 17:51:21 +0100
committerRay <raysan5@gmail.com>2016-03-16 17:51:21 +0100
commitd6bc7b887721de660917125eddd53372be1bf3f8 (patch)
tree250ea2e3ade3cd076708f1d6188b89fae014c684 /src
parentee52b13ae63f098c4e26a9812b2088f80fcbe7cc (diff)
downloadraylib-d6bc7b887721de660917125eddd53372be1bf3f8.tar.gz
raylib-d6bc7b887721de660917125eddd53372be1bf3f8.zip
Reset pointCount for gestures
Diffstat (limited to 'src')
-rw-r--r--src/gestures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gestures.c b/src/gestures.c
index 583b77cd..b0a80084 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -179,6 +179,7 @@ void ProcessGestureEvent(GestureEvent event)
}
touchDownDragPosition = (Vector2){ 0.0f, 0.0f };
+ pointCount = 0;
}
else if (event.touchAction == TOUCH_MOVE)
{
@@ -257,6 +258,7 @@ void ProcessGestureEvent(GestureEvent event)
pinchDistance = 0.0f;
pinchAngle = 0.0f;
pinchVector = (Vector2){ 0.0f, 0.0f };
+ pointCount = 0;
currentGesture = GESTURE_NONE;
}