예제 #1
0
 private void EnableHandSimulation()
 {
     if (handDataProvider == null)
     {
         handDataProvider = new CustomSimulatedHandDataProvider(GetInputSimulationProfile());
         handDataProvider.OnHandDataChanged += OnHandDataChanged;
     }
 }
예제 #2
0
        private void DisableHandSimulation()
        {
            RemoveAllHandDevices();

            if (handDataProvider != null)
            {
                handDataProvider.OnHandDataChanged -= OnHandDataChanged;
                handDataProvider = null;
            }
        }