示例#1
0
 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();
     }
 }
示例#4
0
 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();
     }
 }
示例#5
0
 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();
         }
     }
 }
示例#6
0
 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();
         }
     }
 }