Esempio n. 1
0
    public static Controller GetConnectedControllers()
    {
        if (version >= OVRP_1_9_0.version)
        {
            return(OVRP_1_9_0.ovrp_GetConnectedControllers());
        }

        return(Controller.None);
    }
Esempio n. 2
0
    public static Controller GetActiveController()
    {
        if (version >= OVRP_1_9_0.version)
        {
            return(OVRP_1_9_0.ovrp_GetActiveController());
        }

        return(Controller.None);
    }
Esempio n. 3
0
    public static SystemHeadset GetSystemHeadsetType()
    {
        if (version >= OVRP_1_9_0.version)
        {
            return(OVRP_1_9_0.ovrp_GetSystemHeadsetType());
        }

        return(SystemHeadset.None);
    }
Esempio n. 4
0
 public static bool ResetAppPerfStats()
 {
     if (version >= OVRP_1_9_0.version)
     {
         return(OVRP_1_9_0.ovrp_ResetAppPerfStats() == OVRPlugin.Bool.True);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 5
0
 public static AppPerfStats GetAppPerfStats()
 {
     if (version >= OVRP_1_9_0.version)
     {
         return(OVRP_1_9_0.ovrp_GetAppPerfStats());
     }
     else
     {
         return(new AppPerfStats());
     }
 }
Esempio n. 6
0
    public static bool GetBoundaryGeometry2(BoundaryType boundaryType, IntPtr points, ref int pointsCount)
    {
        if (version >= OVRP_1_9_0.version)
        {
            return(OVRP_1_9_0.ovrp_GetBoundaryGeometry2(boundaryType, points, ref pointsCount) == OVRPlugin.Bool.True);
        }
        else
        {
            pointsCount = 0;

            return(false);
        }
    }