private void GestureHoldCompleted(HoldCompletedEventArgs args) { if (CorrectHand(args.source)) { Transmitter.SendButton(_tracker, "hold", false); } }
/** 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"); } }
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)) { } }
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); } }
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 = "アンカーをすべて削除しました"; }
void CaliHold.HoldComplete(HoldCompletedEventArgs args) { _user.spatial.HoldCompleteReaction(args); }
protected void OnHoldCompletedEvent(HoldCompletedEventArgs obj) { inputManager.RaiseHoldCompleted(this, (uint)obj.source.id); }
public virtual void OnHoldCompleted(HoldCompletedEventArgs args) { }
private void OnHoldStop(HoldCompletedEventArgs obj) { stopHoldThisFrame = true; isHolding = false; }
void Recognizer_HoldCompletedEvent(HoldCompletedEventArgs args) { //Debug.Log("HoldCompleted"); OnSelectedOption("OnHoldCompleted"); }
private void OnGestureHoldComplete(HoldCompletedEventArgs args) { // throw new NotImplementedException(); }
void holdHandler(HoldCompletedEventArgs args) { toggleAppState(); }
protected void GestureRecognizer_HoldCompleted(HoldCompletedEventArgs args) { InputManager.Instance.RaiseHoldCompleted(this, args.source.id); }
private void GestureHoldCompleted(HoldCompletedEventArgs args) { SendButtonGesture("hold_ended"); }
void CaliHold.HoldComplete(HoldCompletedEventArgs args) { TurnOnVisuals(false); }
void AdjHold.HoldComplete(HoldCompletedEventArgs args) { }
void InterHold.HoldComplete(HoldCompletedEventArgs args) { }
private void GestureRecognizer_Hold_Completed(HoldCompletedEventArgs args) { Debug.Log("Hold Completed"); }