Exemple #1
0
 private void CheckModelControlGestures(KinectInfoInterpreter userKinectInfo)
 {
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_DRAG)) {
         OnPanRight();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_DRAG)) {
         OnPanLeft();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.UP_DRAG)) {
         OnPanDown();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.DOWN_DRAG)) {
         OnPanUp();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.STRETCH)) {
         cameraZoom.ZoomIn(ZoomSettings.ZoomSource.KINECT);
         OnZoomIn();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.SQUASH)) {
         cameraZoom.ZoomOut(ZoomSettings.ZoomSource.KINECT);
         OnZoomOut();
     }
 }
Exemple #2
0
 private void CheckRightPanelControlGestures(KinectInfoInterpreter userKinectInfo)
 {
     bool invert = false;
     if (userKinectInfo.useGamepad) {
         invert = true;
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_DRAG)) {
         if (!inspectorController.hingeOut != invert) inspectorController.ToggleHinge();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_DRAG)) {
         if (inspectorController.hingeOut != invert) inspectorController.ToggleHinge();
     }
 }
Exemple #3
0
 private void CheckLeftPanelControlGestures(KinectInfoInterpreter userKinectInfo)
 {
     bool invert = false;
     if (userKinectInfo.useGamepad) {
         invert = true;
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.LEFT_DRAG)) {
         if (infoController.hingeOut != invert) infoController.ToggleHinge();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.RIGHT_DRAG)) {
         if (!infoController.hingeOut != invert) infoController.ToggleHinge();
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.DOWN_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.DOWN_DRAG)) {
         infoHolder.Scroll(false != invert);
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.UP_SWIPE) || userKinectInfo.GetGestureTriggered(EdsacGestures.UP_DRAG)) {
         infoHolder.Scroll(true != invert);
     }
     if (userKinectInfo.GetGestureTriggered(EdsacGestures.SELECT)) {
         if (userKinectInfo == firstPlayerKinectInfo && engagementController.userEngagingLeftPanel[0]) {
             OnSelectLeftPanel();
         } else if (userKinectInfo == secondPlayerKinectInfo && engagementController.userEngagingLeftPanel[1]) {
             OnSelectLeftPanel();
         }
     }
 }