public static float GetLensSeparationDistance()
        {
            float d = 0;

            OculusRiftDevice.GetLensSeparationDistance(ref d);
            return(d);
        }
        public static float GetInterpupillaryDistance()
        {
            float d = 0;

            OculusRiftDevice.GetInterpupillaryDistance(ref d);
            return(d);
        }
        public static Quaternion GetPredictedOrientation()
        {
            Quaternion q = new Quaternion();

            OculusRiftDevice.GetPredictedOrientation(ref q);
            return(q);
        }
        public static float GetEyeToScreenDistance()
        {
            float d = 0;

            OculusRiftDevice.GetEyeToScreenDistance(ref d);
            return(d);
        }
 public OculusClient()
 {
     OculusRiftDevice.Initialize();
     DistK0 = OculusRiftDevice.DistK0;
     DistK1 = OculusRiftDevice.DistK1;
     DistK2 = OculusRiftDevice.DistK2;
     DistK3 = OculusRiftDevice.DistK3;
 }
        public static Vector2 GetScreenSize()
        {
            Vector2 screenSize = new Vector2();
            float   h          = 0;
            float   v          = 0;

            OculusRiftDevice.GetScreenSize(ref h, ref v);
            screenSize.X = h;
            screenSize.Y = v;
            return(screenSize);
        }
        public static Vector2 GetScreenResolution()
        {
            Vector2 resolution = new Vector2();
            int     h          = 0;
            int     v          = 0;

            OculusRiftDevice.GetScreenResolution(ref h, ref v);
            resolution.X = (float)h;
            resolution.Y = (float)v;
            return(resolution);
        }
 public static bool SetSensorPredictionTime(int sensorID, float predictionTime)
 {
     OculusRiftDevice.SetSensorPredictionTime(sensorID, predictionTime);
     return(true);
 }
 public static bool ResetSensorOrientation(int sensorID)
 {
     OculusRiftDevice.ResetSensorOrientation(sensorID);
     return(true);
 }
示例#10
0
        public static bool isHMDPresent()
        {
            bool a = OculusRiftDevice.IsHMDPresent();

            return(a);
        }
示例#11
0
        public static bool isInitialized()
        {
            bool a = OculusRiftDevice.IsInitialized();

            return(a);
        }