void SteamVRModelLoaded(SteamVR_RenderModel model, bool loaded) { //find if the controller is touch or vive by the type of its trackpad Valve.VR.ETrackedPropertyError pError = new Valve.VR.ETrackedPropertyError(); int axisprop = Valve.VR.OpenVR.System.GetInt32TrackedDeviceProperty((uint)trackedController.index, Valve.VR.ETrackedDeviceProperty.Prop_Axis0Type_Int32, ref pError); controllerType = axisprop == (int)Valve.VR.EVRControllerAxisType.k_eControllerAxis_Joystick ? Type.OCULUS_TOUCH : Type.VIVE; //call evenets if (ModelLoaded != null) { ModelLoaded(this); } }
public float RefreshRate() { Valve.VR.ETrackedPropertyError err = default; return(Valve.VR.OpenVR.System.GetFloatTrackedDeviceProperty((uint)HMDindex, Valve.VR.ETrackedDeviceProperty.Prop_DisplayFrequency_Float, ref err)); }