Example #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;
     }
 }
Example #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;
     }
 }
Example #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;
 }
Example #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;
 }