SpatialInteractionSourceState.IsSelectPressed SpatialInteractionSourceState.IsSelectPressed SpatialInteractionSourceState.IsSelectPressed SpatialInteractionSourceState.IsSelectPressed SpatialInteractionSourceState.IsSelectPressed Property

Definition

Gets whether a hand or motion controller is experiencing a primary Select press.

public : Platform::Boolean IsSelectPressed { get; }
bool IsSelectPressed();
public bool IsSelectPressed { get; }
Public ReadOnly Property IsSelectPressed As bool
var bool = spatialInteractionSourceState.isSelectPressed;

Property Value

bool bool bool

Whether the source is experiencing a Select press.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Select represents the primary press for a spatial interaction source:

  • For hands, a Select press represents the user's index finger in the down position.
  • For motion controllers, a Select press represents the controller's index-finger trigger (or primary face button, if no trigger) being fully pressed.
  • For voice, a Select press represents the user saying the system keyword "Select".

Note that a voice "Select" causes an instant press and release, and so you cannot poll for a voice press using IsPressed, IsSelectPressed or SelectPressedValue. Instead, use a SpatialGestureRecognizer and handle the Tapped event, or handle the SourcePressed event.