Udostępnij za pośrednictwem


SpatialInteractionPressKind Enum

Definition

Specifies the kind of press represented by a SourcePressed or SourceReleased event.

public enum class SpatialInteractionPressKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class SpatialInteractionPressKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum SpatialInteractionPressKind
var value = Windows.UI.Input.Spatial.SpatialInteractionPressKind.none
Public Enum SpatialInteractionPressKind
Inheritance
SpatialInteractionPressKind
Attributes

Windows requirements

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

Fields

Name Value Description
None 0

This is a SourceDetected, SourceLost or SourceUpdated event, which does not represent a press or a release.

Select 1

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".
Menu 2

For motion controllers, a Menu press represents the controller's Menu button being pressed.

Grasp 3

For motion controllers, a grasp represents the user squeezing their fist tightly. This may be detected by grip buttons or a palm trigger.

Touchpad 4

For motion controllers, a touchpad press represents the user clicking down on the touchpad.

Thumbstick 5

For motion controllers, a thumbstick press represents the user clicking down on the thumbstick.

Applies to

See also