Share via


SpatialInteractionSource.Handedness Property

Definition

Gets whether the interaction source represents the user's left hand or right hand.

public:
 property SpatialInteractionSourceHandedness Handedness { SpatialInteractionSourceHandedness get(); };
SpatialInteractionSourceHandedness Handedness();
public SpatialInteractionSourceHandedness Handedness { get; }
var spatialInteractionSourceHandedness = spatialInteractionSource.handedness;
Public ReadOnly Property Handedness As SpatialInteractionSourceHandedness

Property Value

The handedness.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

For controllers that have an inherent handedness, this will always return that handedness, regardless of which hand the controller is physically held in.

For controllers that do not support positional tracking and do not have an inherent handedness, such as the HoloLens clicker, this will always return Unspecified.

For controllers that can be held in either hand, the system might use a heuristic to determine the handedness, returning Unspecified until determined. If such a controller changes handedness, the source is lost and re-detected with the current handedness.

For hand and speech sources on HoloLens, this property always returns Unspecified.

Applies to