コード例 #1
0
 private void GestureRecogniser_CancelHold(HoldCanceledEventArgs args)
 {
     if (focusedObject != null)
     {
         focusedObject.SendMessage("PlacementCancelled");
     }
 }
コード例 #2
0
 private void GestureHoldCanceled(HoldCanceledEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "hold", false);
     }
 }
コード例 #3
0
    /** HoldCancelReaction
     *
     * Called when the Manipulation/move event is Canceled.
     *
     */
    public void HoldCancelReaction(HoldCanceledEventArgs args)
    {
        StateMachine.State state = StateMachine.Instance.state;
        switch (state)
        {
        case StateMachine.State.Calibration:
            CaliHold c = this as CaliHold;
            if (c != null)
            {
                c.HoldCancel(args);
            }
            break;

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

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

        default:
            Debug.Log("Unkonwn State");
            break;
        }
    }
コード例 #4
0
    private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args)
    {
        uint id = args.source.id;

        if (trackingObject.ContainsKey(activeId))
        {
        }
    }
コード例 #5
0
        private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args)
        {
            var controller = GetOrAddController(args.source, false);

            if (controller != null)
            {
                Service?.RaiseGestureCanceled(controller, holdAction);
            }
        }
コード例 #6
0
        private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args)
        {
            var controller = GetController(args.source, false);

            if (controller != null)
            {
                MixedRealityToolkit.InputSystem.RaiseGestureCanceled(controller, holdAction);
            }
        }
コード例 #7
0
    private void HoldCanceled(HoldCanceledEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnHoldCanceled(args);
        }
    }
コード例 #8
0
        private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args)
        {
            uint id = args.source.id;

            StatusText.text = $"HoldCanceled - Kind:{args.source.kind.ToString()} - Id:{id}";
            if (trackingObject.ContainsKey(activeId))
            {
                ChangeObjectColor(trackingObject[activeId], DefaultColor);
                StatusText.text += "-TRACKED";
            }
        }
コード例 #9
0
    void Hold_Canceled(HoldCanceledEventArgs args)
    {
        if (selected == null)
        {
            user.Reaction.HoldCancelReaction(args);
            return;
        }

        selected.HoldCancelReaction(args);
        selected = null;
    }
コード例 #10
0
 protected void OnHoldCanceledEvent(HoldCanceledEventArgs obj)
 {
     inputManager.RaiseHoldCanceled(this, (uint)obj.source.id);
 }
コード例 #11
0
 private void OnHoldCancel(HoldCanceledEventArgs obj)
 {
     cancelHoldThisFrame = true;
     isHolding           = false;
 }
コード例 #12
0
 protected void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args)
 {
     InputManager.Instance.RaiseHoldCanceled(this, args.source.id);
 }
コード例 #13
0
 void AdjHold.HoldCancel(HoldCanceledEventArgs args)
 {
 }
コード例 #14
0
 void InterHold.HoldCancel(HoldCanceledEventArgs args)
 {
 }
コード例 #15
0
 void CaliHold.HoldCancel(HoldCanceledEventArgs args)
 {
     _user.spatial.HoldCancelReaction(args);
 }
コード例 #16
0
ファイル: HoloLens.cs プロジェクト: swoyenssss/Hevs_o_lens
 private void GestureHoldCanceled(HoldCanceledEventArgs args)
 { SendButtonGesture("hold_ended"); }
コード例 #17
0
 public virtual void OnHoldCanceled(HoldCanceledEventArgs args)
 {
 }
コード例 #18
0
 private void GestureRecogniser_CancelHold(HoldCanceledEventArgs args)
 {
     cursorOff.SetActive(true);
     cursorOn.SetActive(false);
 }
コード例 #19
0
ファイル: SMap.cs プロジェクト: Nimbus88/GestureSystem
 void CaliHold.HoldCancel(HoldCanceledEventArgs args)
 {
     TurnOnVisuals(false);
 }
コード例 #20
0
 private void OnGestureHoldCanceled(HoldCanceledEventArgs args)
 {
     // throw new NotImplementedException();
 }
コード例 #21
0
 private void GestureRecognizer_Hold_Canceled(HoldCanceledEventArgs args)
 {
     Debug.Log("Hold Canceled");
 }