protected virtual void OnEnable() { if (SteamVR.instance.hmd_TrackingSystemName == "oculus") { hmdType = HMDType.OCULUS; } _controller = GetComponent <SteamVR_TrackedController>(); if (controller == null) { Debug.LogError("No controller SteamVR_TrackedController found"); return; } controller.TriggerClicked += TriggerClicked; controller.TriggerUnclicked += TriggerReleased; controller.PadClicked += TrackpadDown; controller.PadUnclicked += TrackpadUp; controller.Gripped += Gripped; controller.Ungripped += UnGripped; controller.MenuButtonClicked += MenuClicked; controller.MenuButtonUnclicked += MenuReleased; if (hmdType == HMDType.OCULUS) { AButtonClicked += AButtonPressed; AButtonUnclicked += AButtonReleased; } }
public static HMD HmdCreateDebug(HMDType type) { return(new HMD(ovrHmd_CreateDebug(type))); }
private static extern IntPtr ovrHmd_CreateDebug(HMDType type);
public static HMD HmdCreateDebug(HMDType type) { return new HMD(ovrHmd_CreateDebug(type)); }
private static extern IntPtr ovrHmd_CreateDebug(HMDType type);