Exemplo n.º 1
0
 private void SetupIWear()
 {
     // Get an instance of iWearTracker
     iTracker = iWearTracker.Instance;
     // We need to initialize it before adding it to the InputMapper class
     iTracker.Initialize();
     // If not stereo, then we need to set the iWear VR920 to mono mode (by default, it's
     // stereo mode if stereo is available)
     if (stereoMode)
         iTracker.EnableStereo = true;
     // Add this iWearTracker to the InputMapper class for automatic update and disposal
     InputMapper.Instance.Add6DOFInputDevice(iTracker);
     // Re-enumerate all of the input devices so that the newly added device can be found
     InputMapper.Instance.Reenumerate();
 }
Exemplo n.º 2
0
        private void SetupIWear()
        {
            // Get an instance of iWearTracker
            iTracker = iWearTracker.Instance;
            // We need to initialize it before adding it to the InputMapper class
            iTracker.Initialize();

            iTracker.EnableStereo = true;
            // Add this iWearTracker to the InputMapper class for automatic update and disposal
            InputMapper.Instance.Add6DOFInputDevice(iTracker);
            // Re-enumerate all of the input devices so that the newly added device can be found
            InputMapper.Instance.Reenumerate();
        }