Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.29 KB

spatialnavigationstartedeventargs_trygetpointerpose_100002244.md

File metadata and controls

38 lines (26 loc) · 2.29 KB
-api-id -api-type -api-device-family-note
M:Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs.TryGetPointerPose(Windows.Perception.Spatial.SpatialCoordinateSystem)
winrt method
xbox

Windows.UI.Input.Spatial.SpatialNavigationStartedEventArgs.TryGetPointerPose

-description

Gets the available pointer poses, such as the user's head gaze and each motion controller's pointer pose, for use in targeting this gesture.

-remarks

This pose is from the timestamp of the initial SpatialInteraction routed to this recognizer to begin the active gesture.

When targeting a spatial interaction, such as a hand gesture, motion controller press or voice interaction, apps should choose a pointing ray available from the interaction's SpatialPointerPose, based on the nature of the interaction's SpatialInteractionSource:

  • If the interaction source does not support pointing (IsPointingSupported is false), the app should target based on the user's gaze, available through the Head property.
  • If the interaction source does support pointing (IsPointingSupported is true), the app may instead target based on the source's pointer pose, available through the TryGetInteractionSourcePose method.

The app should then intersect the chosen pointing ray with its own holograms or with the spatial mapping mesh to render cursors and determine what the user is intending to interact with.

Once an interaction has started, relative motions of the hand or controller may be used to control the gesture, as with the Manipulation or Navigation gesture.

This method will return null if the specified coordinate system cannot be located at the moment.

-parameters

-param coordinateSystem

The coordinate system in which to express the pointer poses.

-returns

The pointer poses.

-examples

-see-also