Beispiel #1
0
 private void GestureHoldCompleted(HoldCompletedEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "hold", false);
     }
 }
Beispiel #2
0
    /** HoldCompleteReaction
     *
     * Called when the Manipulation/move event is completed.
     *
     */
    public void HoldCompleteReaction(HoldCompletedEventArgs args)
    {
        StateMachine.State state = StateMachine.Instance.state;
        switch (state)
        {
        case StateMachine.State.Calibration:
            CaliHold c = this as CaliHold;
            if (c != null)
            {
                c.HoldComplete(args);
            }
            break;

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

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

        default:
            Debug.Log("Unkonwn State");
            break;
        }
    }
 private void GestureRecognizer_CompleteHold(HoldCompletedEventArgs args)
 {
     if (focusedObject != null)
     {
         focusedObject.SendMessage("OnSelect");
     }
 }
Beispiel #4
0
 private void GestureRecognizer_CompleteHold(HoldCompletedEventArgs args)
 {
     if (target)
     {
         LoadScene(target.name);
     }
 }
    private void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args)
    {
        uint id = args.source.id;

        if (trackingObject.ContainsKey(activeId))
        {
        }
    }
Beispiel #6
0
    private void HoldCompleted(HoldCompletedEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnHoldCompleted(args);
        }
    }
        private void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args)
        {
            var controller = GetController(args.source, false);

            if (controller != null)
            {
                MixedRealityToolkit.InputSystem.RaiseGestureCompleted(controller, holdAction);
            }
        }
        private void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args)
        {
            var controller = GetOrAddController(args.source, false);

            if (controller != null)
            {
                Service?.RaiseGestureCompleted(controller, holdAction);
            }
        }
Beispiel #9
0
    void Hold_Completed(HoldCompletedEventArgs args)
    {
        if (selected == null)
        {
            user.Reaction.HoldCompleteReaction(args);
            return;
        }

        selected.HoldCompleteReaction(args);
        selected = null;
    }
        private void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args)
        {
            uint id = args.source.id;

            StatusText.text = $"HoldCompleted - Kind:{args.source.kind.ToString()} - Id:{id}";
            if (trackingObject.ContainsKey(activeId))
            {
                ChangeObjectColor(trackingObject[activeId], DefaultColor);
                StatusText.text += "-TRACKED";
            }
        }
        private void OnHold(HoldCompletedEventArgs args)
        {
            if (_focusedObject == null && _holdIndicator != null)
            {
                Destroy(_holdIndicator.gameObject);
                if (_lastState == States.VISUALIZE)
                {
                    EventHandler.Broadcast(Events.OPEN_MENU);
                }

                if (_lastState == States.TEST)
                {
                    EventHandler.Broadcast(Events.SHOW_TEST, 0);
                }
            }
        }
        /// <summary>
        /// ホールド終了時の処理
        /// </summary>
        /// <param name="holdEvent">ホールドイベント情報</param>
        private void HandleHold(HoldCompletedEventArgs holdEvent)
        {
            if (store == null)
            {
                return;
            }

            ClearAllAnchors();
            anchorNum = 0;
            foreach (Transform child in worldAnchorsParent)
            {
                Destroy(child.gameObject);
            }

            debugText.text = "アンカーをすべて削除しました";
        }
Beispiel #13
0
 void CaliHold.HoldComplete(HoldCompletedEventArgs args)
 {
     _user.spatial.HoldCompleteReaction(args);
 }
Beispiel #14
0
 protected void OnHoldCompletedEvent(HoldCompletedEventArgs obj)
 {
     inputManager.RaiseHoldCompleted(this, (uint)obj.source.id);
 }
Beispiel #15
0
 public virtual void OnHoldCompleted(HoldCompletedEventArgs args)
 {
 }
Beispiel #16
0
 private void OnHoldStop(HoldCompletedEventArgs obj)
 {
     stopHoldThisFrame = true;
     isHolding         = false;
 }
 void Recognizer_HoldCompletedEvent(HoldCompletedEventArgs args)
 {
     //Debug.Log("HoldCompleted");
     OnSelectedOption("OnHoldCompleted");
 }
Beispiel #18
0
 private void OnGestureHoldComplete(HoldCompletedEventArgs args)
 {
     // throw new NotImplementedException();
 }
 void holdHandler(HoldCompletedEventArgs args)
 {
     toggleAppState();
 }
Beispiel #20
0
 protected void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args)
 {
     InputManager.Instance.RaiseHoldCompleted(this, args.source.id);
 }
Beispiel #21
0
 private void GestureHoldCompleted(HoldCompletedEventArgs args)
 { SendButtonGesture("hold_ended"); }
Beispiel #22
0
 void CaliHold.HoldComplete(HoldCompletedEventArgs args)
 {
     TurnOnVisuals(false);
 }
Beispiel #23
0
 void AdjHold.HoldComplete(HoldCompletedEventArgs args)
 {
 }
Beispiel #24
0
 void InterHold.HoldComplete(HoldCompletedEventArgs args)
 {
 }
Beispiel #25
0
 private void GestureRecognizer_Hold_Completed(HoldCompletedEventArgs args)
 {
     Debug.Log("Hold Completed");
 }