Пример #1
0
        public static void HeadsetOn()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return;
                }

                dev.SendCommand(PSVRCommand.GetHeadsetOn());
            }
        }
Пример #2
0
 private void detectTimer_Tick(object sender, EventArgs e)
 {
     try
     {
         vrSet = new PSVR();
         vrSet.SensorDataUpdate += VrSet_SensorDataUpdate;
         vrSet.Removed          += VrSet_Removed;
         vrSet.SendCommand(PSVRCommand.GetHeadsetOn());
         vrSet.SendCommand(PSVRCommand.GetEnterVRMode());
         Thread.Sleep(1500);
         vrSet.SendCommand(PSVRCommand.GetExitVRMode());
         detectTimer.Enabled  = false;
         lblStatus.Text       = "VR set found";
         grpFunctions.Enabled = true;
     }
     catch { detectTimer.Enabled = true; }
 }
Пример #3
0
 private void HeadsetOn()
 {
     vrSet.SendCommand(PSVRCommand.GetHeadsetOn());
 }