コード例 #1
0
 public void OnPoseEvent(Valve.VR.EVREventType eventType)
 {
     if (PoseEvent != null)
     {
         PoseEvent(eventType);
     }
 }
コード例 #2
0
 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();
     }
 }