private void InputSource_HoldCanceled(object sender, HoldEventArgs e) { // Create input event holdEventData.Initialize(e.InputSource, e.SourceId); // Pass handler through HandleEvent to perform modal/fallback logic HandleEvent(holdEventData, OnHoldCanceledEventHandler); }
protected void RaiseHoldCompletedEvent(HoldEventArgs e) { EventHandler <HoldEventArgs> handler = HoldCompleted; if (handler != null) { handler(this, e); } }
private void OnHoldCompletedEvent(InteractionSourceKind source, Ray headray) { HoldEventArgs args = new HoldEventArgs(this, 0); RaiseHoldCompletedEvent(args); }
private void OnHoldStartedEvent(InteractionSourceKind source, Ray headray) { HoldEventArgs args = new HoldEventArgs(this, 0); RaiseHoldStartedEvent(args); }
protected void RaiseHoldStartedEvent(HoldEventArgs e) { EventHandler<HoldEventArgs> handler = HoldStarted; if (handler != null) { handler(this, e); } }
private void OnHoldCompletedEvent(UnityEngine.XR.WSA.Input.InteractionSourceKind source, Ray headray) { HoldEventArgs args = new HoldEventArgs(this, 0); RaiseHoldCompletedEvent(args); }