Exemplo n.º 1
0
        public static bool HeadsetOff()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                return(dev.SendReport(PSVRReport.GetHeadsetOff()));
            }
        }
Exemplo n.º 2
0
        public static bool EnableVRTracking()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                return(dev.SendReport(PSVRReport.GetEnableVRTracking()));
            }
        }
Exemplo n.º 3
0
        public static bool EnableCinematicMode()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                return(dev.SendReport(PSVRReport.GetExitVRMode()));
            }
        }
Exemplo n.º 4
0
        public static bool RequestDeviceInfo()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                var cmd = PSVRReport.GetReadDeviceInfo();
                return(dev.SendReport(cmd));
            }
        }
Exemplo n.º 5
0
        public static bool LedsDefault()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                Settings set = Settings.Instance;
                var      cmd = PSVRReport.GetSetHDMLeds(LedMask.All, 0, 0, 0, 0, 0, 0, 0, 0x46, 0x46);
                return(dev.SendReport(cmd));
            }
        }
Exemplo n.º 6
0
        public static bool ApplyLedSettings()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                Settings set = Settings.Instance;
                var      cmd = PSVRReport.GetSetHDMLeds(LedMask.All, set.LedAIntensity, set.LedBIntensity, set.LedCIntensity, set.LedDIntensity, set.LedEIntensity, set.LedFIntensity, set.LedGIntensity, set.LedHIntensity, set.LedIIntensity);
                return(dev.SendReport(cmd));
            }
        }
Exemplo n.º 7
0
        public static bool ApplyCinematicSettings()
        {
            lock (locker)
            {
                if (dev == null)
                {
                    return(false);
                }

                Settings set = Settings.Instance;

                var cmd = PSVRReport.GetSetCinematicConfiguration(0xC0, set.ScreenDistance, set.ScreenSize, 0x14, set.Brightness, set.MicVol, false);
                return(dev.SendReport(cmd));
            }
        }