Exemple #1
0
 private void DiscardInputChanges()
 {
     inputManager.enablePSMove = originalEnablePSMove;
     inputManager.enableKinect = originalEnableKinect;
     if (jumpGesture)
     {
         if (originalEnableJumpGesture)
         {
             jumpGesture.EnableGesture();
         }
         else
         {
             jumpGesture.DisableGesture();
         }
     }
     inputManager.jumpGestureEnabled             = originalEnableJumpGesture;
     inputManager.enableRazerHydra               = originalEnableHydra;
     inputManager.riftMagnetometerMode           = originalMagnetometerMode;
     inputManager.kinectDriftCorrectionPreferred = originalKinectDriftCorrection;
 }
Exemple #2
0
 private void DiscardInputChanges()
 {
     inputManager.enablePSMove  = originalEnablePSMove;
     inputManager.enableKinect  = originalEnableKinect;
     inputManager.enableKinect2 = originalEnableKinect2;
     if (jumpGesture)
     {
         if (originalEnableJumpGesture)
         {
             jumpGesture.EnableGesture();
         }
         else
         {
             jumpGesture.DisableGesture();
         }
     }
     inputManager.jumpGestureEnabled             = originalEnableJumpGesture;
     inputManager.enableRazerHydra               = originalEnableHydra;
     inputManager.kinectDriftCorrectionPreferred = originalKinectDriftCorrection;
     inputManager.PSMoveIP   = originalPSMoveIP;
     inputManager.PSMovePort = originalPSMovePort;
 }