public void PoseEvent(Valve.VR.EVREventType eventType) { if (OnPoseEvent != null) { OnPoseEvent(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(); } }
void CognitiveVR_Manager_OnPoseEvent(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionStarted) { headsetPresent = true; } if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionEnded) { headsetPresent = false; SendData(); } }
void CognitiveVR_Manager_OnPoseEvent(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionStarted) { hmdpresentGUID = System.Guid.NewGuid().ToString(); Instrumentation.Transaction("HMDPresent", hmdpresentGUID).setProperty("present", true).setProperty("starttime", Time.time).begin(); } if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionEnded) { Util.logDebug("hmd removed"); Instrumentation.Transaction("HMDPresent", hmdpresentGUID).setProperty("present", false).setProperty("endtime", Time.time - 10f).end(); } }
void CognitiveVR_Manager_OnPoseEvent(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionStarted) { headsetPresent = true; } if (evrevent == Valve.VR.EVREventType.VREvent_TrackedDeviceUserInteractionEnded) { headsetPresent = false; if (CognitiveVR_Preferences.Instance.SendDataOnHMDRemove) { Core.InvokeSendDataEvent(); } } }
void CognitiveVR_Manager_PoseEventHandler(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_ChaperoneDataHasChanged) { if (Valve.VR.OpenVR.Chaperone.AreBoundsVisible()) { chaperoneGUID = Util.GetUniqueId(); new CustomEvent("cvr.boundary").SetProperty("visible", true).Send(); Util.logDebug("chaperone visible"); } else { new CustomEvent("cvr.boundary").SetProperty("visible", false).Send(); } } }
void CognitiveVR_Manager_PoseEventHandler(Valve.VR.EVREventType evrevent) { if (evrevent == Valve.VR.EVREventType.VREvent_ChaperoneDataHasChanged) { if (Valve.VR.OpenVR.Chaperone.AreBoundsVisible()) { chaperoneGUID = System.Guid.NewGuid().ToString(); Instrumentation.Transaction("chaperone", chaperoneGUID).begin(); Util.logDebug("chaperone visible"); } else { Instrumentation.Transaction("chaperone", chaperoneGUID).end(); } } }