private void OnGestureHoldCompleted(SpatialGestureRecognizer sender, SpatialHoldCompletedEventArgs args)
 {
     if (this.HoldCompletedEvent != null)
     {
         WaveForegroundTask.Run(() =>
         {
             this.HoldCompletedEvent(
                 this.service,
                 (SpatialSource)args.InteractionSourceKind,
                 this.mixedRealityApplication.HeadRay);
         });
     }
 }
Beispiel #2
0
 void Hold_HoldCompleted(SpatialGestureRecognizer sender, SpatialHoldCompletedEventArgs args)
 {
     Application.InvokeOnMain(() => app.OnGestureHoldCompleted());
 }
 private void OnHoldComleted(SpatialGestureRecognizer sender, SpatialHoldCompletedEventArgs args)
 {
     GestureStatus = SpatialGestureSettings.Hold;
     HoldTotalTime = DateTime.Now - holdStartTime;
 }