public static void HeadsetOn() { lock (locker) { if (dev == null) { return; } dev.SendCommand(PSVRCommand.GetHeadsetOn()); } }
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; } }
private void HeadsetOn() { vrSet.SendCommand(PSVRCommand.GetHeadsetOn()); }