SpatialInteractionSource SpatialInteractionSource SpatialInteractionSource SpatialInteractionSource SpatialInteractionSource Class

Definition

Represents one detected instance of a hand, motion controller, or user's voice that can cause interactions and gestures.

public : sealed class SpatialInteractionSource : ISpatialInteractionSource, ISpatialInteractionSource2, ISpatialInteractionSource3
struct winrt::Windows::UI::Input::Spatial::SpatialInteractionSource : ISpatialInteractionSource, ISpatialInteractionSource2, ISpatialInteractionSource3
public sealed class SpatialInteractionSource : ISpatialInteractionSource, ISpatialInteractionSource2, ISpatialInteractionSource3
Public NotInheritable Class SpatialInteractionSource Implements ISpatialInteractionSource, ISpatialInteractionSource2, ISpatialInteractionSource3
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Remarks

For hands and controllers, each detected hand or motion controller will get its own ID. For as long as the system can track that a hand is the same hand that was previously detected, it will share an ID.

For the user's voice, a single ID will be used for all voice input.

Properties

Controller Controller Controller Controller Controller

Represents the specifics of a detected motion controller.

Handedness Handedness Handedness Handedness Handedness

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

Id Id Id Id Id

Gets the identifier for the hand, motion controller, or user's voice.

IsGraspSupported IsGraspSupported IsGraspSupported IsGraspSupported IsGraspSupported

Gets whether the source supports detecting grasps.

IsMenuSupported IsMenuSupported IsMenuSupported IsMenuSupported IsMenuSupported

Gets whether the source supports Menu presses.

IsPointingSupported IsPointingSupported IsPointingSupported IsPointingSupported IsPointingSupported

Gets whether the source can provide pointer poses.

Kind Kind Kind Kind Kind

Gets the kind of the interaction source.

Methods

TryGetStateAtTimestamp(PerceptionTimestamp) TryGetStateAtTimestamp(PerceptionTimestamp) TryGetStateAtTimestamp(PerceptionTimestamp) TryGetStateAtTimestamp(PerceptionTimestamp) TryGetStateAtTimestamp(PerceptionTimestamp)

Get the state of this source as of the specified timestamp.

See Also