Example #1
0
    private void GestureRecognizerOnNavigationUpdated(NavigationUpdatedEventArgs navigationUpdatedEventArgs)
    {
        var normalizedOffset = navigationUpdatedEventArgs.normalizedOffset;

        transform.localPosition += normalizedOffset - _previousOffset;
        _previousOffset          = normalizedOffset;
    }
Example #2
0
    private void OnNavigationUpdate(NavigationUpdatedEventArgs obj)
    {
        updateNavigationThisFrame = true;

        navigationFrameDelta = obj.normalizedOffset - navigationFullDelta;
        navigationFullDelta  = obj.normalizedOffset;
    }
 void GestureRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
 {
     inputAction         = MultiARInterop.InputAction.Grip;
     inputNavCoordinates = obj.normalizedOffset;
     inputTimestamp      = lastFrameTimestamp;
     //Debug.Log("GestureRecognizer_NavigationUpdated: " + obj.normalizedOffset);
 }
Example #4
0
    /** NavUpdateReaction
     *
     * Called during the Navigation event.
     *
     */
    public void NavUpdateReaction(NavigationUpdatedEventArgs args)
    {
        StateMachine.State state = StateMachine.Instance.state;
        switch (state)
        {
        case StateMachine.State.Calibration:
            CaliNav c = this as CaliNav;
            if (c != null)
            {
                c.NavUpdate(args);
            }
            break;

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

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

        default:
            Debug.Log("Unkonwn State");
            break;
        }
    }
Example #5
0
        private void NavigationRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
        {
            // 2.b: Set IsNavigating to be true.
            IsNavigating = true;

            // 2.b: Set NavigationPosition to be obj.normalizedOffset.
            NavigationPosition = obj.normalizedOffset;
        }
Example #6
0
        private void NavigationRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
        {
            //Debug.Log ("NavigationRecognizer_NavigationUpdated");

            IsNavigating = true;

            NavigationPosition = obj.normalizedOffset;
        }
Example #7
0
 // Navigation Updated
 private void GestureNavigationUpdated(NavigationUpdatedEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "navigation", true);
         SetNavigation(args.normalizedOffset.x, args.normalizedOffset.y, args.normalizedOffset.z);
     }
 }
Example #8
0
    void Nav_Update(NavigationUpdatedEventArgs args)
    {
        if (selected == null)
        {
            return;
        }

        selected.NavUpdateReaction(args);
    }
Example #9
0
    private void NavigationUpdated(NavigationUpdatedEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnNavigationUpdated(args);
        }
    }
Example #10
0
 private void NavigationRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
 {
     if (HandsManager.Instance.FocusedGameObject != null)
     {
         IsNavigating       = true;
         NavigationPosition = obj.normalizedOffset;
         HandsManager.Instance.FocusedGameObject.SendMessageUpwards("PerformRotation");
     }
 }
        private void NavigationGestureRecognizer_NavigationUpdated(NavigationUpdatedEventArgs args)
        {
            var controller = GetController(args.source, false);

            if (controller != null)
            {
                MixedRealityToolkit.InputSystem.RaiseGestureUpdated(controller, navigationAction, args.normalizedOffset);
            }
        }
        private void NavigationGestureRecognizer_NavigationUpdated(NavigationUpdatedEventArgs args)
        {
            var controller = GetOrAddController(args.source, false);

            if (controller != null)
            {
                Service?.RaiseGestureUpdated(controller, navigationAction, args.normalizedOffset);
            }
        }
    private void NavigationRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
    {
        Debug.Log("Debug: navigation updated.");
        //IsNavigating = true;

        //// -1 ~ 1. Start from 0. There are also some space out of range (-1 to +1) and were counted as +1/-1.
        //NavigationPosition = obj.normalizedOffset;
        ////Debug.Log(NavigationPosition.x);
    }
Example #14
0
        private void NavigationRecognizer_NavigationUpdated(NavigationUpdatedEventArgs obj)
        {
            // 2.b: Set IsNavigating to be true.
            IsNavigating = true;

            // 2.b: Set NavigationPosition to be obj.normalizedOffset.
            NavigationPosition = obj.normalizedOffset;
            if (HandsManager.Instance.FocusedGameObject != null)
            {
                IsNavigating = true;

                NavigationPosition = obj.normalizedOffset;

                HandsManager.Instance.FocusedGameObject.SendMessageUpwards("OnNavigationUpdated", NavigationPosition);
            }
        }
Example #15
0
 void InterNav.NavUpdate(NavigationUpdatedEventArgs args)
 {
 }
Example #16
0
 protected void NavigationGestureRecognizer_NavigationUpdated(NavigationUpdatedEventArgs args)
 {
     InputManager.Instance.RaiseNavigationUpdated(this, args.source.id, args.normalizedOffset);
 }
Example #17
0
 private void GestureHandler_OnNavigationUpdated(NavigationUpdatedEventArgs eventArgs)
 {
     m_Module.Internal_GestureNotifier();
     m_NavigationNormalizedOffset = eventArgs.normalizedOffset;
 }
Example #18
0
        private void OnNavigationUpdated(NavigationUpdatedEventArgs args)
        {
            Ray ray = new Ray();

            OnNavigationUpdatedWorker(args.source.kind, args.normalizedOffset, ray);
        }
Example #19
0
 protected void OnNavigationUpdatedEvent(NavigationUpdatedEventArgs obj)
 {
     inputManager.RaiseNavigationUpdated(this, (uint)obj.source.id, obj.normalizedOffset);
 }
Example #20
0
 public virtual void OnNavigationUpdated(NavigationUpdatedEventArgs args)
 {
 }
Example #21
0
 void AdjNav.NavUpdate(NavigationUpdatedEventArgs args)
 {
 }
Example #22
0
 private void GestureNavigationUpdated(NavigationUpdatedEventArgs args)
 { SendAxesGesture("navigation", args.normalizedOffset); }
Example #23
0
 void CaliNav.NavUpdate(NavigationUpdatedEventArgs args)
 {
 }