private void UpdateFingerDictionaries(bool isKeyDown, int id, Vector2 pos) { if (isKeyDown) { FingerIdToBeginPositions[id] = pos; FingerIdsToLastPos[id] = pos; } else { FingerIdToBeginPositions.Remove(id); FingerIdsToLastPos.Remove(id); } }
protected override void ProcessUpEventPointer(int id, Vector2 pos) { FingerIdToBeginPositions.Remove(id); HasGestureStarted = (NbOfFingerOnScreen == ConfigLongPress.RequiredNumberOfFingers); }