public void OnPoseEvent(Valve.VR.EVREventType eventType) { if (PoseEvent != null) { PoseEvent(eventType); } }
void CognitiveVR_Manager_OnPoseEvent(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionStarted) { new CustomEvent("cvr.hmdpresent").SetProperty("present", true).SetProperty("starttime", Time.time).Send(); } if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionEnded) { new CustomEvent("cvr.hmdpresent").SetProperty("present", false).SetProperty("endtime", Time.time - 10f).Send(); } }