private void GestureRecogniser_CancelHold(HoldCanceledEventArgs args) { if (focusedObject != null) { focusedObject.SendMessage("PlacementCancelled"); } }
private void GestureHoldCanceled(HoldCanceledEventArgs args) { if (CorrectHand(args.source)) { Transmitter.SendButton(_tracker, "hold", false); } }
/** 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; } }
private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args) { uint id = args.source.id; if (trackingObject.ContainsKey(activeId)) { } }
private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args) { var controller = GetOrAddController(args.source, false); if (controller != null) { Service?.RaiseGestureCanceled(controller, holdAction); } }
private void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args) { var controller = GetController(args.source, false); if (controller != null) { MixedRealityToolkit.InputSystem.RaiseGestureCanceled(controller, holdAction); } }
private void HoldCanceled(HoldCanceledEventArgs args) { IWidget focused = GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus(); if (focused != null) { GameObject.Find("Managers").GetComponent <GameObjectManager>().getFocus().OnHoldCanceled(args); } }
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"; } }
void Hold_Canceled(HoldCanceledEventArgs args) { if (selected == null) { user.Reaction.HoldCancelReaction(args); return; } selected.HoldCancelReaction(args); selected = null; }
protected void OnHoldCanceledEvent(HoldCanceledEventArgs obj) { inputManager.RaiseHoldCanceled(this, (uint)obj.source.id); }
private void OnHoldCancel(HoldCanceledEventArgs obj) { cancelHoldThisFrame = true; isHolding = false; }
protected void GestureRecognizer_HoldCanceled(HoldCanceledEventArgs args) { InputManager.Instance.RaiseHoldCanceled(this, args.source.id); }
void AdjHold.HoldCancel(HoldCanceledEventArgs args) { }
void InterHold.HoldCancel(HoldCanceledEventArgs args) { }
void CaliHold.HoldCancel(HoldCanceledEventArgs args) { _user.spatial.HoldCancelReaction(args); }
private void GestureHoldCanceled(HoldCanceledEventArgs args) { SendButtonGesture("hold_ended"); }
public virtual void OnHoldCanceled(HoldCanceledEventArgs args) { }
private void GestureRecogniser_CancelHold(HoldCanceledEventArgs args) { cursorOff.SetActive(true); cursorOn.SetActive(false); }
void CaliHold.HoldCancel(HoldCanceledEventArgs args) { TurnOnVisuals(false); }
private void OnGestureHoldCanceled(HoldCanceledEventArgs args) { // throw new NotImplementedException(); }
private void GestureRecognizer_Hold_Canceled(HoldCanceledEventArgs args) { Debug.Log("Hold Canceled"); }