Esempio n. 1
0
 private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj)
 {
     Debug.Log("Debug: navigation started.");
     //IsNavigating = true;
     //hasTriggeredClose = false;
     //NavigationPosition = Vector3.zero;
 }
Esempio n. 2
0
    ////////////////////////////////////////////////////////////////////
    ///                   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");
    }
Esempio n. 4
0
        private void NavigationRecognizer_NavigationStarted(NavigationStartedEventArgs obj)
        {
            //Debug.Log ("NavigationRecognizer_NavigationStarted");

            IsNavigating = true;

            NavigationPosition = Vector3.zero;
        }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 // Navigation Started
 private void GestureNavigationStarted(NavigationStartedEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "navigation", true);
         SetNavigation(0f, 0f, 0f);
     }
 }
Esempio n. 7
0
    private void NavigationStarted(NavigationStartedEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnNavigationStarted(args);
        }
    }
Esempio n. 8
0
 // 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);
            }
        }
Esempio n. 11
0
        private void GestureHandler_OnNavigationStarted(NavigationStartedEventArgs eventArgs)
        {
            m_Module.Internal_GestureNotifier();
            if (!TryGetAnchorWorldSpace(out m_NavigationAnchorWorldSpace))
            {
                return;
            }

            m_MouseEmulationMode         = MouseEmulationMode.Navigation;
            m_NavigationNormalizedOffset = Vector3.zero;
        }
Esempio n. 12
0
    void Nav_Start(NavigationStartedEventArgs args)
    {
        if (selected)
        {
            return;
        }

        selected = IObject.selectObject();
        if (selected)
        {
            selected.NavStartReaction(args);
        }
    }
Esempio n. 13
0
        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);
            }
        }
Esempio n. 14
0
 void InterNav.NavStart(NavigationStartedEventArgs args)
 {
 }
Esempio n. 15
0
 protected void NavigationGestureRecognizer_NavigationStarted(NavigationStartedEventArgs args)
 {
     InputManager.Instance.RaiseNavigationStarted(this, args.source.id);
 }
Esempio n. 16
0
 private void GestureRecognizerOnNavigationStarted(NavigationStartedEventArgs navigationStartedEventArgs)
 {
     _previousOffset = Vector3.zero;
 }
Esempio n. 17
0
 protected void OnNavigationStartedEvent(NavigationStartedEventArgs obj)
 {
     inputManager.RaiseNavigationStarted(this, (uint)obj.source.id, Vector3.zero);
 }
Esempio n. 18
0
 private void OnNavigationStart(NavigationStartedEventArgs obj)
 {
     startNavigationThisFrame = true;
     isNavigating             = true;
 }
Esempio n. 19
0
 private void OnNavigationStarted(NavigationStartedEventArgs args)
 {
 }
Esempio n. 20
0
 void AdjNav.NavStart(NavigationStartedEventArgs args)
 {
 }
Esempio n. 21
0
 public virtual void OnNavigationStarted(NavigationStartedEventArgs args)
 {
 }
Esempio n. 22
0
 void CaliNav.NavStart(NavigationStartedEventArgs args)
 {
 }
Esempio n. 23
0
 protected void OnNavigationStartedEvent(NavigationStartedEventArgs obj)
 {
     inputManager.RaiseNavigationStarted(this, (uint)obj.source.id, obj.normalizedOffset);
 }
Esempio n. 24
0
 // Navigation Started
 private void GestureNavigationStarted(NavigationStartedEventArgs args)
 { SendAxesGesture("navigation", Vector3.zero); }