SpatialInteractionPressKind Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
|
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. |