Aracılığıyla paylaş


SpatialInteractionSourceState.SelectPressedValue Property

Definition

Gets the amount to which a hand or motion controller is experiencing a primary Select press, as a value between 0.0 and 1.0.

public:
 property double SelectPressedValue { double get(); };
double SelectPressedValue();
public double SelectPressedValue { get; }
var double = spatialInteractionSourceState.selectPressedValue;
Public ReadOnly Property SelectPressedValue As Double

Property Value

Double

double

The amount to which 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

SelectPressedValue ranges from 0.0 to 1.0, with 0.0 representing no Select press and 1.0 representing a full Select press. IsPressed will only return true once the SelectPressedValue reaches 1.0. If a given source can only detect an on/off state for Select presses, the value will always be 0.0 or 1.0.

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