void IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData eventData) { ResetDwellFeedback(); }
/// <summary> /// No-op on pointer down. /// </summary> /// <param name="eventData"></param> public void OnPointerDown(MixedRealityPointerEventData eventData) { }
void IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData eventData) { }
public void OnPointerUp(MixedRealityPointerEventData eventData) { Debug.Log("OnPointerUp"); }
public void OnPointerClicked(MixedRealityPointerEventData eventData) { onClick.Invoke(); }
// Update is called once per frame public void OnClick(MixedRealityPointerEventData mixedRealityPointerEventData) { tmp.text = "Changed noq.l....."; Debug.Log("On click text " + tmp.text); }
public void Spawn(MixedRealityPointerEventData eventData) { gpc.AddPose(eventData.Pointer.Result.Details.Point); }
/// <inheritdoc/> void IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData eventData) { this.OnPointerUp?.Invoke(this, eventData); }
public void OnPointerDown(MixedRealityPointerEventData eventData) { _timesClicked++; UpdateText(); PlayClip(_clickAudio); }
public void OnPointerDragged(MixedRealityPointerEventData eventData) { var dv = eventData.Pointer.Position - pointerStartPosition; Resize(dv); }
public void OnPointerDown(MixedRealityPointerEventData eventData) { startParentScale = ParentTransform.localScale; pointerStartPosition = eventData.Pointer.Position; startParentPosition = ParentTransform.position; }
public void Test() { TestUtilities.InitializeMixedRealityToolkitAndCreateScenes(true); var selector = new DefaultPrimaryPointerSelector(); selector.Initialize(); // No primary pointer Assert.IsNull(selector.Update()); var pointer1 = new TestPointer(); Assert.IsFalse(pointer1.IsInteractionEnabled); selector.RegisterPointer(pointer1); // Still no primary pointer because pointer 1 is not interaction enabled Assert.IsNull(selector.Update()); pointer1.IsInteractionEnabled = true; // Pointer 1 selected as primary Assert.AreSame(pointer1, selector.Update()); pointer1.IsInteractionEnabled = false; // No primary pointer Assert.IsNull(selector.Update()); pointer1.IsInteractionEnabled = true; // Pointer 1 selected as primary Assert.AreSame(pointer1, selector.Update()); var pointer2 = new TestPointer(); pointer2.IsInteractionEnabled = true; selector.RegisterPointer(pointer2); // Pointer 2 selected as primary because it got enabled last Assert.AreSame(pointer2, selector.Update()); var pointerHandler = selector as IMixedRealityPointerHandler; var eventData = new MixedRealityPointerEventData(null); // Pointer 1 down eventData.Initialize(pointer1, MixedRealityInputAction.None); pointerHandler.OnPointerDown(eventData); // Pointer 1 selected as primary because it is pressed Assert.AreSame(pointer1, selector.Update()); // Pointer 2 down eventData.Initialize(pointer2, MixedRealityInputAction.None); pointerHandler.OnPointerDown(eventData); // Pointer 1 still primary because it has been pressed longer Assert.AreSame(pointer1, selector.Update()); // Pointer 1 up eventData.Initialize(pointer1, MixedRealityInputAction.None); pointerHandler.OnPointerUp(eventData); // Pointer 2 primary because it is the only one pressed Assert.AreSame(pointer2, selector.Update()); // Pointer 2 up eventData.Initialize(pointer2, MixedRealityInputAction.None); pointerHandler.OnPointerUp(eventData); // Pointer 2 still primary because it is the one released last Assert.AreSame(pointer2, selector.Update()); selector.UnregisterPointer(pointer2); // Pointer 1 primary because it is the only one left and is interaction enabled Assert.AreSame(pointer1, selector.Update()); selector.UnregisterPointer(pointer1); // No primary pointer Assert.IsNull(selector.Update()); selector.Destroy(); }
public void OnPointerUp(MixedRealityPointerEventData eventData) { pressableTransform.localPosition = Vector3.zero; }
public void OnPointerDown(MixedRealityPointerEventData eventData) { pressableTransform.localPosition = pressedOffset; }
public void OnPointerUp(MixedRealityPointerEventData eventData) { _panningPointer = null; }
public void OnPointerClicked(MixedRealityPointerEventData eventData) { debugEnabled = !debugEnabled; UpdateChildren(); }
public void OnPointerDragged(MixedRealityPointerEventData eventData) { }
void IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData eventData) { }
public void OnPointerClicked(MixedRealityPointerEventData eventData) { }
public void OnPointerUp(MixedRealityPointerEventData eventData) { throw new System.NotImplementedException(); }
public void OnPointerDragged(MixedRealityPointerEventData eventData) { //Debug.Log("OnPointerDragged"); }
void IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData eventData) { }
public void OnPointerClicked(MixedRealityPointerEventData eventData) { Debug.Log("OnPointerClicked"); }
public void OnPointerDown(MixedRealityPointerEventData eventData) { Debug.Log("Toggle sharing"); }