Beispiel #1
0
 private void GestureHandler_Tapped(InteractionSourceKind source, int tapCount, Ray headRay)
 {
     this.m_Module.Internal_GestureNotifier();
     if (this.TryGetAnchorWorldSpace(out this.m_TapAnchorWorldSpace))
     {
         this.m_MouseEmulationMode = MouseEmulationMode.Tap;
         this.m_LastTapTime        = Time.time;
     }
 }
Beispiel #2
0
 private void GestureHandler_NavigationStarted(InteractionSourceKind source, Vector3 normalizedOffset, Ray headRay)
 {
     this.m_Module.Internal_GestureNotifier();
     if (this.TryGetAnchorWorldSpace(out this.m_NavigationAnchorWorldSpace))
     {
         this.m_MouseEmulationMode         = MouseEmulationMode.Navigation;
         this.m_NavigationNormalizedOffset = normalizedOffset;
     }
 }
Beispiel #3
0
 public void UpdateInput()
 {
     if ((this.m_MouseEmulationMode == MouseEmulationMode.Tap) && ((this.m_LastTapTime + this.m_Module.timeToPressOnTap) < Time.time))
     {
         this.m_MouseEmulationMode = MouseEmulationMode.Inactive;
     }
     this.m_IsEmulatedMouseDownPrev = this.m_IsEmulatedMouseDownCurr;
     this.m_IsEmulatedMouseDownCurr = this.m_MouseEmulationMode != MouseEmulationMode.Inactive;
 }
Beispiel #4
0
 private void GestureHandler_NavigationCompletedOrCanceled(InteractionSourceKind source, Vector3 normalizedOffset, Ray headRay)
 {
     this.m_Module.Internal_GestureNotifier();
     this.m_NavigationNormalizedOffset = Vector3.zero;
     this.m_MouseEmulationMode         = MouseEmulationMode.Inactive;
 }