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