Beispiel #1
0
 private void GestureRecognizer_StartHold(HoldStartedEventArgs args)
 {
     if (target)
     {
         cursorOn.GetComponent <Image>().sprite = handDown;
     }
 }
Beispiel #2
0
 private void GestureHoldStarted(HoldStartedEventArgs args)
 {
     if (CorrectHand(args.source))
     {
         Transmitter.SendButton(_tracker, "hold", true);
     }
 }
 private void GestureRecognizer_StartHold(HoldStartedEventArgs args)
 {
     if (focusedObject != null)
     {
         focusedObject.SendMessage("OnSelect");
     }
 }
Beispiel #4
0
    ////////////////////////////////////////////////////////////////////
    ///                      Hold Reactions                         ////
    ////////////////////////////////////////////////////////////////////
    // Gestures for pinching and holding an object

    /** HoldStartReaction
     *
     * Called at the start of the Manipulation/move event.
     *
     */
    public void HoldStartReaction(HoldStartedEventArgs args)
    {
        StateMachine.State state = StateMachine.Instance.state;
        switch (state)
        {
        case StateMachine.State.Calibration:
            CaliHold c = this as CaliHold;
            if (c != null)
            {
                c.HoldStart(args);
            }
            break;

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

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

        default:
            Debug.Log("Unkonwn State");
            break;
        }
    }
    private void GestureRecognizer_HoldStarted(HoldStartedEventArgs args)
    {
        uint id = args.source.id;

        if (trackingObject.ContainsKey(activeId))
        {
        }
    }
        private void GestureRecognizer_HoldStarted(HoldStartedEventArgs args)
        {
            var controller = GetOrAddController(args.source, false);

            if (controller != null)
            {
                Service?.RaiseGestureStarted(controller, holdAction);
            }
        }
        private void GestureRecognizer_HoldStarted(HoldStartedEventArgs args)
        {
            var controller = GetController(args.source, false);

            if (controller != null)
            {
                MixedRealityToolkit.InputSystem?.RaiseGestureStarted(controller, holdAction);
            }
        }
Beispiel #8
0
    private void HoldStarted(HoldStartedEventArgs args)
    {
        IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus();

        if (focused != null)
        {
            GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnHoldStarted(args);
        }
    }
Beispiel #9
0
 private void GestureRecognizer_Hold_Started(HoldStartedEventArgs args)
 {
     Debug.Log("Hold Started");
     //if (GazeManager.Instance.Hit && OverrideFocusedObject == null && GazeManager.Instance.HitInfo.collider != null) {
     //    selectionSphere.transform.position = GazeManager.Instance.HitInfo.point;
     //    selectionSphere.transform.localScale = new Vector3(0.01f, 0.01f, 0.01f);
     //    selectionSphereRenderer.enabled = true;
     //}
 }
 private void OnHoldStarted(HoldStartedEventArgs args)
 {
     if (_focusedObject == null && _holdIndicator != null)
     {
         foreach (Image img in _holdIndicator.GetComponentsInChildren <Image>())
         {
             img.color = HoldInitiatedColor;
         }
         _holdIndicator.GetComponentInChildren <Text>().text = "Release";
     }
 }
        private void GestureRecognizer_HoldStarted(HoldStartedEventArgs args)
        {
            uint id = args.source.id;

            StatusText.text = $"HoldStarted - Kind:{args.source.kind.ToString()} - Id:{id}";
            if (trackingObject.ContainsKey(activeId))
            {
                ChangeObjectColor(trackingObject[activeId], HoldColor);
                StatusText.text += "-TRACKED";
            }
        }
 private void GestureRecognizer_HoldStarted(HoldStartedEventArgs obj)
 {
     //长按空白处调出菜单
     if (GazeManager.Instance.FocusedObject == null)
     {
         if (!mainPanel.GetChild(0).gameObject.activeSelf)
         {
             mainPanel.GetComponent <MainPanelShow>().Show();
         }
     }
     OnSelectCallBack(focusedObject, "OnHold");
 }
Beispiel #13
0
    void Hold_Started(HoldStartedEventArgs args)
    {
        if (selected)
        {
            return;
        }
        IObject obj = IObject.selectObject();

        if (obj)
        {
            selected = obj;
            obj.HoldStartReaction(args);
        }
        else
        {
            user.Reaction.HoldStartReaction(args);
        }
    }
Beispiel #14
0
 protected void OnHoldStartedEvent(HoldStartedEventArgs obj)
 {
     inputManager.RaiseHoldStarted(this, (uint)obj.source.id);
 }
Beispiel #15
0
 private void OnHoldStart(HoldStartedEventArgs obj)
 {
     startHoldThisFrame = true;
     isHolding          = true;
 }
Beispiel #16
0
 private void OnGestureHoldStart(HoldStartedEventArgs args)
 {
     // throw new NotImplementedException();
 }
 void Recognizer_HoldStartedEvent(HoldStartedEventArgs args)
 {
     //Debug.Log("Hold");
     OnSelectedOption("OnHoldSelected");
 }
Beispiel #18
0
 void InterHold.HoldStart(HoldStartedEventArgs args)
 {
 }
Beispiel #19
0
 void CaliHold.HoldStart(HoldStartedEventArgs args)
 {
     _user.spatial.HoldStartReaction(args);
 }
Beispiel #20
0
 private void GestureHoldStarted(HoldStartedEventArgs args)
 { SendButtonGesture("hold_started"); }
Beispiel #21
0
 protected void GestureRecognizer_HoldStarted(HoldStartedEventArgs args)
 {
     InputManager.Instance.RaiseHoldStarted(this, args.source.id);
 }
Beispiel #22
0
 public virtual void OnHoldStarted(HoldStartedEventArgs args)
 {
 }
Beispiel #23
0
 void AdjHold.HoldStart(HoldStartedEventArgs args)
 {
 }
Beispiel #24
0
 void CaliHold.HoldStart(HoldStartedEventArgs args)
 {
     TurnOnVisuals(true);
 }
 private void Gr_HoldStarted(HoldStartedEventArgs obj)
 {
     StartApp();
 }
 public void HoldStarted (HoldStartedEventArgs args)
 {
     //On Hold, activate "Locate Text" command
     LocateText();
     Debug.Log("Hold Started event registered");
 }