Beispiel #1
0
        private void HandleTwoHandedActions(HandTracker handTrack)
        {
            var otherHand = this.handTracks.Where(h => h != handTrack && h.HoveredImage == handTrack.HoveredImage).FirstOrDefault();

            if (otherHand == null)
            {
                handTrack.ResizeSingleHand();
            }
            else
            {
                handTrack.ResizeTwoHands(otherHand);
            }
        }
        private void HandleTwoHandedActions(HandTracker handTrack)
        {
            var otherHand = this.handTracks.Where(h => h != handTrack && h.HoveredImage == handTrack.HoveredImage).FirstOrDefault();

            if (otherHand == null)
            {
                handTrack.performLastGestureNumberOfTimes();
                //handTrack.ResizeSingleHand(rec);
            }
            else
            {
                handTrack.ResizeTwoHands(otherHand);
            }
        }
 public void ResizeTwoHands(HandTracker otherHand)
 {
     if (!handData.HasPalmPoint || !otherHand.handData.HasPalmPoint)
     {
         return;
     }
     if (handData.FingerCount <= 1 && otherHand.handData.FingerCount <= 1)
     {
         this.HandleResize(handData.PalmPoint.Value, otherHand.handData.PalmPoint.Value);
         this.isResizing = true;
     }
     else
     {
         this.isResizing = false;
     }
 }
Beispiel #4
0
 public void ResizeTwoHands(HandTracker otherHand)
 {
     if (!handData.HasPalmPoint || !otherHand.handData.HasPalmPoint)
     {
         return;
     }
     if (handData.FingerCount <= 1 && otherHand.handData.FingerCount <= 1)
     {
         this.HandleResize(handData.PalmPoint.Value, otherHand.handData.PalmPoint.Value);
         this.isResizing = true;
     }
     else
     {
         this.isResizing = false;
     }
 }
Beispiel #5
0
 private void HandleTwoHandedActions(HandTracker handTrack)
 {
     var otherHand = this.handTracks.Where(h => h != handTrack && h.HoveredImage == handTrack.HoveredImage).FirstOrDefault();
     if (otherHand == null)
     {
         handTrack.ResizeSingleHand();
     }
     else
     {
         handTrack.ResizeTwoHands(otherHand);
     }
 }