Ejemplo n.º 1
0
        public static void HeadsetOn()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return;
                }

                dev.SendCommand(PSVRCommand.GetHeadsetOn());
            }
        }
Ejemplo n.º 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; }
 }
Ejemplo n.º 3
0
 private void HeadsetOn()
 {
     vrSet.SendCommand(PSVRCommand.GetHeadsetOn());
 }