Exemple #1
0
    /** NavCancelReaction
     *
     * Called when the Navigation event is Canceled.
     *
     */
    public void NavCancelReaction(NavigationCanceledEventArgs args)
    {
        StateMachine.State state = StateMachine.Instance.state;
        switch (state)
        {
        case StateMachine.State.Calibration:
            CaliNav c = this as CaliNav;
            if (c != null)
            {
                c.NavCancel(args);
            }
            break;

        case StateMachine.State.Interaction:
            InterNav i = this as InterNav;
            if (i != null)
            {
                i.NavCancel(args);
            }
            break;

        case StateMachine.State.Adjusting:
            AdjNav a = this as AdjNav;
            if (a != null)
            {
                a.NavCancel(args);
            }
            break;

        default:
            Debug.Log("Unkonwn State");
            break;
        }
    }
Exemple #2
0
 // Navigation Ended
 private void GestureNavigationCanceled(NavigationCanceledEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "navigation", false);
         SetNavigation(0f, 0f, 0f);
     }
 }
Exemple #3
0
    private void OnNavigationCancel(NavigationCanceledEventArgs obj)
    {
        cancelNavigationThisFrame = true;
        isNavigating = false;

        navigationFrameDelta = new Vector3(0, 0, 0);
        navigationFullDelta  = new Vector3(0, 0, 0);
    }
 private void NavigationRecognizer_NavigationCanceled(NavigationCanceledEventArgs obj)
 {
     Debug.Log("Debug: navigation canceled.");
     //IsNavigating = false;
     //navCloseObj.SetActive(false);
     //navLeftObj.SetActive(false);
     //navRightObj.SetActive(false);
 }
        private void NavigationGestureRecognizer_NavigationCanceled(NavigationCanceledEventArgs args)
        {
            var controller = GetController(args.source, false);

            if (controller != null)
            {
                MixedRealityToolkit.InputSystem.RaiseGestureCanceled(controller, navigationAction);
            }
        }
Exemple #6
0
 void Nav_Cancel(NavigationCanceledEventArgs args)
 {
     if (selected == null)
     {
         return;
     }
     selected.NavCancelReaction(args);
     selected = null;
 }
        private void NavigationGestureRecognizer_NavigationCanceled(NavigationCanceledEventArgs args)
        {
            var controller = GetOrAddController(args.source, false);

            if (controller != null)
            {
                Service?.RaiseGestureCanceled(controller, navigationAction);
            }
        }
Exemple #8
0
    private void NavigationCanceled(NavigationCanceledEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnNavigationCanceled(args);
        }
    }
Exemple #9
0
        public void OnNavigationCanceled(NavigationCanceledEventArgs args)
        {
            bool handled = false;

            if (GazeSelectionManager.Instance && GazeSelectionManager.Instance.SelectedTarget)
            {
                handled = GazeSelectionManager.Instance.SelectedTarget.OnNavigationCanceled(args.source.kind);
            }

            if (!handled && InputCanceled != null)
            {
                InputCanceled(args.source.kind);
            }
        }
Exemple #10
0
 protected void NavigationGestureRecognizer_NavigationCanceled(NavigationCanceledEventArgs args)
 {
     InputManager.Instance.RaiseNavigationCanceled(this, args.source.id);
 }
Exemple #11
0
 void AdjNav.NavCancel(NavigationCanceledEventArgs args)
 {
 }
Exemple #12
0
 private void NavigationRecognizer_NavigationCanceled(NavigationCanceledEventArgs obj)
 {
     // 2.b: Set IsNavigating to be false.
     IsNavigating = false;
 }
Exemple #13
0
 private void GestureHandler_OnNavigationCanceled(NavigationCanceledEventArgs eventArgs)
 {
     OnNavigationCompletedOrCanceled();
 }
        private void NavigationRecognizer_NavigationCanceled(NavigationCanceledEventArgs obj)
        {
            //Debug.Log ("NavigationRecognizer_NavigationCanceled");

            IsNavigating = false;
        }
Exemple #15
0
 protected void OnNavigationCanceledEvent(NavigationCanceledEventArgs obj)
 {
     inputManager.RaiseNavigationCanceled(this, (uint)obj.source.id, Vector3.zero);
 }
Exemple #16
0
 public virtual void OnNavigationCanceled(NavigationCanceledEventArgs args)
 {
 }
Exemple #17
0
 private void NavigationRecognizer_NavigationCanceled(NavigationCanceledEventArgs obj)
 {
     IsNavigating = false;
 }
Exemple #18
0
 // Navigation Ended
 private void GestureNavigationCanceled(NavigationCanceledEventArgs args)
 { SendAxesGesture("navigation", Vector3.zero); }
Exemple #19
0
 protected void OnNavigationCanceledEvent(NavigationCanceledEventArgs obj)
 {
     inputManager.RaiseNavigationCanceled(this, (uint)obj.source.id, obj.normalizedOffset);
 }
 void GestureRecognizer_NavigationCanceled(NavigationCanceledEventArgs obj)
 {
     inputAction    = MultiARInterop.InputAction.Release;
     inputTimestamp = lastFrameTimestamp;
     //Debug.Log("GestureRecognizer_NavigationCanceled");
 }
Exemple #21
0
 void InterNav.NavCancel(NavigationCanceledEventArgs args)
 {
 }
Exemple #22
0
 void CaliNav.NavCancel(NavigationCanceledEventArgs args)
 {
 }