private void EnableMotionControllerSimulation() { if (dataProvider == null) { DebugUtilities.LogVerbose("Creating a new motion controller simulation data provider"); dataProvider = new SimulatedMotionControllerDataProvider(InputSimulationProfile); } }
private void EnableHandSimulation() { if (dataProvider == null) { DebugUtilities.LogVerbose("Creating a new hand simulation data provider"); dataProvider = new SimulatedHandDataProvider(InputSimulationProfile); } }
private void DisableControllerSimulation() { RemoveAllControllerDevices(); if (dataProvider != null) { DebugUtilities.LogVerbose("Destroying the controller simulation data provider"); dataProvider = null; } }
private void EnableMotionControllerSimulation() { if (dataProvider == null) { DebugUtilities.LogVerbose("Creating a new motion controller simulation data provider"); dataProvider = new SimulatedMotionControllerDataProvider(InputSimulationProfile); } else if (dataProvider is SimulatedHandDataProvider) { DebugUtilities.LogVerbose("Replacing hand simulation data provider with motion controller simulation data provider"); RemoveAllControllerDevices(); dataProvider = new SimulatedMotionControllerDataProvider(InputSimulationProfile); } }