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

            IsNavigating = true;

            NavigationPosition = Vector3.zero;
        }
예제 #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;
        }
예제 #6
0
 // Navigation Started
 private void GestureNavigationStarted(NavigationStartedEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "navigation", true);
         SetNavigation(0f, 0f, 0f);
     }
 }
예제 #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);
        }
    }
예제 #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);
            }
        }
예제 #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;
        }
예제 #12
0
    void Nav_Start(NavigationStartedEventArgs args)
    {
        if (selected)
        {
            return;
        }

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