public static void HeadsetOff() { lock (locker) { if (dev == null) { return; } dev.SendCommand(PSVRCommand.GetHeadsetOff()); } }
public static void EnableCinematicMode() { lock (locker) { if (dev == null) { return; } dev.SendCommand(PSVRCommand.GetExitVRMode()); } }
public static void EnableVRTracking() { lock (locker) { if (dev == null) { return; } dev.SendCommand(PSVRCommand.GetEnableVRTracking()); dev.SendCommand(PSVRCommand.GetEnterVRMode()); } }
public static void ApplyLedSettings() { lock (locker) { if (dev == null) { return; } Settings set = Settings.Instance; var cmd = PSVRCommand.GetSetHDMLeds(LedMask.All, set.LedAIntensity, set.LedBIntensity, set.LedCIntensity, set.LedDIntensity, set.LedEIntensity, set.LedFIntensity, set.LedGIntensity, set.LedHIntensity, set.LedIIntensity); dev.SendCommand(cmd); } }
public static void ApplyCinematicSettings() { lock (locker) { if (dev == null) { return; } Settings set = Settings.Instance; var cmd = PSVRCommand.GetSetCinematicConfiguration(set.ScreenDistance, set.ScreenSize, set.Brightness, set.MicVol, false); dev.SendCommand(cmd); } }
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 Shutdown() { vrSet.SendCommand(PSVRCommand.GetHeadsetOff()); vrSet.SendCommand(PSVRCommand.GetBoxOff()); }
private void Recenter() { vrSet.SendCommand(PSVRCommand.GetEnterVRMode()); Thread.Sleep(1500); vrSet.SendCommand(PSVRCommand.GetExitVRMode()); }
private void EnableTheaterMode() { vrSet.SendCommand(PSVRCommand.GetExitVRMode()); }
private void EnableVRMode() { vrSet.SendCommand(PSVRCommand.GetEnterVRMode()); }
private void HeadsetOff() { vrSet.SendCommand(PSVRCommand.GetHeadsetOff()); }