コード例 #1
0
 private static TwoHandGestureSegment[] GetTwoHandGestureSegments()
 {
     TwoHandGestureSegment[] gestureSegments = new TwoHandGestureSegment[2];
     gestureSegments[0] = SwipeUpGestureSegment1.UsingTwoHands();
     gestureSegments[1] = SwipeUpGestureSegment2.UsingTwoHands();
     return(gestureSegments);
 }
コード例 #2
0
 private static OneHandGestureSegment[] GetSegments(JointType dominantHand)
 {
     OneHandGestureSegment[] relativeGestureSegments = new OneHandGestureSegment[2];
     relativeGestureSegments[0] = SwipeUpGestureSegment1.Using(dominantHand);
     relativeGestureSegments[1] = SwipeUpGestureSegment2.Using(dominantHand);
     return(relativeGestureSegments);
 }
コード例 #3
0
 private static OneHandGestureSegment[] GetOffHandSegments(JointType dominantHand)
 {
     OneHandGestureSegment[] gestureSegments = new OffHandNonIdleGestureSegment[2];
     gestureSegments[0] = SwipeUpGestureSegment1.WithOffHandRaised(dominantHand);
     gestureSegments[1] = SwipeUpGestureSegment2.WithOffHandRaised(dominantHand);
     return(gestureSegments);
 }