private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { Debug.Log("Debug: navigation started."); //IsNavigating = true; //hasTriggeredClose = false; //NavigationPosition = Vector3.zero; }
//////////////////////////////////////////////////////////////////// /// Navigation Reactions //// //////////////////////////////////////////////////////////////////// // Gestures for pinching and dragging an object // Mainly used for "Scrolling" or "Rotating" /** NavStartReaction * * Called at the start of an Navigation event. * */ public void NavStartReaction(NavigationStartedEventArgs args) { StateMachine.State state = StateMachine.Instance.state; switch (state) { case StateMachine.State.Calibration: CaliNav c = this as CaliNav; if (c != null) { c.NavStart(args); } break; case StateMachine.State.Interaction: InterNav i = this as InterNav; if (i != null) { i.NavStart(args); } break; case StateMachine.State.Adjusting: AdjNav a = this as AdjNav; if (a != null) { a.NavStart(args); } break; default: Debug.Log("Unkonwn State"); break; } }
// // invoked when the hold-gesture is started by the user // void GestureRecognizer_HoldStarted(HoldStartedEventArgs obj) // { // inputAction = MultiARInterop.InputAction.Grip; // inputTimestamp = lastFrameTimestamp; // Debug.Log("GestureRecognizer_HoldStarted"); // } // // // invoked when the hold-gesture is completed by the user // void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs obj) // { // inputAction = MultiARInterop.InputAction.Release; // inputTimestamp = lastFrameTimestamp; // Debug.Log("GestureRecognizer_HoldCompleted"); // } // // // invoked when the hold-gesture is canceled by the user // void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs obj) // { // inputAction = MultiARInterop.InputAction.Release; // inputTimestamp = lastFrameTimestamp; // Debug.Log("GestureRecognizer_HoldCanceled"); // } void GestureRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { inputAction = MultiARInterop.InputAction.Grip; inputNavCoordinates = Vector3.zero; inputTimestamp = lastFrameTimestamp; //Debug.Log("GestureRecognizer_NavigationStarted"); }
private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { //Debug.Log ("NavigationRecognizer_NavigationStarted"); IsNavigating = true; NavigationPosition = Vector3.zero; }
private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { // 2.b: Set IsNavigating to be true. IsNavigating = true; // 2.b: Set NavigationPosition to be Vector3.zero. NavigationPosition = Vector3.zero; }
// Navigation Started private void GestureNavigationStarted(NavigationStartedEventArgs args) { if (CorrectHand(args.source)) { Transmitter.SendButton(_tracker, "navigation", true); SetNavigation(0f, 0f, 0f); } }
private void NavigationStarted(NavigationStartedEventArgs args) { IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus(); if (focused != null) { GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnNavigationStarted(args); } }
// Private Methods private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { if (HandsManager.Instance.FocusedGameObject != null) { IsNavigating = true; NavigationPosition = Vector3.zero; HandsManager.Instance.FocusedGameObject.SendMessageUpwards("PerformRotation"); } }
private void NavigationGestureRecognizer_NavigationStarted(NavigationStartedEventArgs args) { var controller = GetOrAddController(args.source, false); if (controller != null) { Service?.RaiseGestureStarted(controller, navigationAction); } }
private void NavigationGestureRecognizer_NavigationStarted(NavigationStartedEventArgs args) { var controller = GetController(args.source, false); if (controller != null) { MixedRealityToolkit.InputSystem.RaiseGestureStarted(controller, navigationAction); } }
private void GestureHandler_OnNavigationStarted(NavigationStartedEventArgs eventArgs) { m_Module.Internal_GestureNotifier(); if (!TryGetAnchorWorldSpace(out m_NavigationAnchorWorldSpace)) { return; } m_MouseEmulationMode = MouseEmulationMode.Navigation; m_NavigationNormalizedOffset = Vector3.zero; }
void Nav_Start(NavigationStartedEventArgs args) { if (selected) { return; } selected = IObject.selectObject(); if (selected) { selected.NavStartReaction(args); } }
private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj) { // 2.b: Set IsNavigating to be true. IsNavigating = true; // 2.b: Set NavigationPosition to be Vector3.zero. NavigationPosition = Vector3.zero; if (HandsManager.Instance.FocusedGameObject != null) { IsNavigating = true; NavigationPosition = Vector3.zero; HandsManager.Instance.FocusedGameObject.SendMessageUpwards("OnNavigationStarted", NavigationPosition); } }
void InterNav.NavStart(NavigationStartedEventArgs args) { }
protected void NavigationGestureRecognizer_NavigationStarted(NavigationStartedEventArgs args) { InputManager.Instance.RaiseNavigationStarted(this, args.source.id); }
private void GestureRecognizerOnNavigationStarted(NavigationStartedEventArgs navigationStartedEventArgs) { _previousOffset = Vector3.zero; }
protected void OnNavigationStartedEvent(NavigationStartedEventArgs obj) { inputManager.RaiseNavigationStarted(this, (uint)obj.source.id, Vector3.zero); }
private void OnNavigationStart(NavigationStartedEventArgs obj) { startNavigationThisFrame = true; isNavigating = true; }
private void OnNavigationStarted(NavigationStartedEventArgs args) { }
void AdjNav.NavStart(NavigationStartedEventArgs args) { }
public virtual void OnNavigationStarted(NavigationStartedEventArgs args) { }
void CaliNav.NavStart(NavigationStartedEventArgs args) { }
protected void OnNavigationStartedEvent(NavigationStartedEventArgs obj) { inputManager.RaiseNavigationStarted(this, (uint)obj.source.id, obj.normalizedOffset); }
// Navigation Started private void GestureNavigationStarted(NavigationStartedEventArgs args) { SendAxesGesture("navigation", Vector3.zero); }