private void OnGestureManipulationStarted(SpatialGestureRecognizer sender, SpatialManipulationStartedEventArgs args) { if (this.ManipulationStartedEvent != null) { WaveForegroundTask.Run(() => { this.ManipulationStartedEvent( this.service, (SpatialSource)args.InteractionSourceKind, this.mixedRealityApplication.HeadRay); }); } }
void ManipulationTranslate_ManipulationStarted(SpatialGestureRecognizer sender, SpatialManipulationStartedEventArgs args) { Application.InvokeOnMain(() => app.OnGestureManipulationStarted()); }
// Summary: // Handler for manipulation started events. Obtains the stationary frame of reference for the gesture. private void OnManipulationStarted(object sender, SpatialManipulationStartedEventArgs e) { // Manipulation has started - obtain the frame of reference relative to when the gesture began stationaryFrameOfReference = spatialLocator.CreateStationaryFrameOfReferenceAtCurrentLocation(); }