Explorar el Código

Reset pointCount for gestures

pull/107/head
Ray hace 8 años
padre
commit
d6bc7b8877
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/gestures.c

+ 2
- 0
src/gestures.c Ver fichero

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

Cargando…
Cancelar
Guardar