Aracılığıyla paylaş


SpatialInteractionSourceState.IsSelectPressed Property

Definition

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

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

Property Value

Boolean

bool

Whether the source is experiencing a Select press.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

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.

Applies to