Exemplo n.º 1
0
    static void ReportError(HmdError error)
    {
        switch (error)
        {
        case HmdError.None:
            break;

        case HmdError.VendorSpecific_UnableToConnectToOculusRuntime:
            Debug.Log("SteamVR Initialization Failed!  Make sure device is on, Oculus runtime is installed, and OVRService_*.exe is running.");
            break;

        case HmdError.Init_VRClientDLLNotFound:
            Debug.Log("SteamVR drivers not found!  They can be installed via Steam under Library > Tools.  Visit http://steampowered.com to install Steam.");
            break;

        case HmdError.Driver_RuntimeOutOfDate:
            Debug.Log("SteamVR Initialization Failed!  Make sure device's runtime is up to date.");
            break;

        default:
            Debug.Log(OpenVR.GetStringForHmdError(error));
            break;
        }
    }
Exemplo n.º 2
0
 public static extern System.IntPtr Init(ref HmdError peError);
Exemplo n.º 3
0
 internal static extern IntPtr Init(ref HmdError peError, EVRApplicationType eApplicationType);
Exemplo n.º 4
0
 internal static extern IntPtr GetStringForHmdError(HmdError error);
Exemplo n.º 5
0
 internal static extern IntPtr GetGenericInterface([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref HmdError peError);
Exemplo n.º 6
0
 public static IntPtr Init(ref HmdError peError, EVRApplicationType eApplicationType = EVRApplicationType.VRApplication_Scene)
 {
     return OpenVRInterop.Init(ref peError, eApplicationType);
 }
Exemplo n.º 7
0
 public static string GetStringForHmdError(HmdError error)
 {
     return Marshal.PtrToStringAnsi(OpenVRInterop.GetStringForHmdError(error));
 }
internal static extern string VR_GetStringForHmdError(HmdError error);
Exemplo n.º 9
0
 static void ReportError(HmdError error)
 {
     switch (error)
     {
         case HmdError.None:
             break;
         case HmdError.VendorSpecific_UnableToConnectToOculusRuntime:
             Debug.Log("SteamVR Initialization Failed!  Make sure device is on, Oculus runtime is installed, and OVRService_*.exe is running.");
             break;
         case HmdError.Init_VRClientDLLNotFound:
             Debug.Log("SteamVR drivers not found!  They can be installed via Steam under Library > Tools.  Visit http://steampowered.com to install Steam.");
             break;
         case HmdError.Driver_RuntimeOutOfDate:
             Debug.Log("SteamVR Initialization Failed!  Make sure device's runtime is up to date.");
             break;
         default:
             Debug.Log(OpenVR.GetStringForHmdError(error));
             break;
     }
 }
Exemplo n.º 10
0
 internal static extern IntPtr Init(ref HmdError peError);
Exemplo n.º 11
0
 public static IntPtr Init(ref HmdError peError)
 {
     return OpenVRInterop.Init(ref peError);
 }
Exemplo n.º 12
0
 public static IHMD Init(out HmdError peError)
 {
     return(new CHMD(VR_Init(out peError)));
 }
Exemplo n.º 13
0
 internal static extern string VR_GetStringForHmdError(HmdError error);
Exemplo n.º 14
0
 internal static extern IntPtr VR_Init(out HmdError peError);
Exemplo n.º 15
0
public static IHMD Init(out HmdError peError)
{
	return new CHMD(VR_Init(out peError));
}
Exemplo n.º 16
0
 public static IntPtr GetGenericInterface(string pchInterfaceVersion, ref HmdError peError)
 {
     return OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError);
 }
Exemplo n.º 17
0
 public static extern System.IntPtr Init(ref HmdError peError);
Exemplo n.º 18
0
internal static extern IntPtr VR_Init(out HmdError peError);