SpatialInteractionControllerProperties
SpatialInteractionControllerProperties
SpatialInteractionControllerProperties
SpatialInteractionControllerProperties
Class
Definition
Represents state specific to motion controllers.
public : sealed class SpatialInteractionControllerProperties : ISpatialInteractionControllerPropertiespublic sealed class SpatialInteractionControllerProperties : ISpatialInteractionControllerPropertiesPublic NotInheritable Class SpatialInteractionControllerProperties Implements ISpatialInteractionControllerProperties// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Properties
IsThumbstickPressed IsThumbstickPressed IsThumbstickPressed IsThumbstickPressed
Gets whether a motion controller is experiencing a thumbstick press.
public : PlatForm::Boolean IsThumbstickPressed { get; }public bool IsThumbstickPressed { get; }Public ReadOnly Property IsThumbstickPressed As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Whether the source is experiencing a thumbstick press.
Remarks
A touchpad press represents the user clicking down on the thumbstick.
IsTouchpadPressed IsTouchpadPressed IsTouchpadPressed IsTouchpadPressed
Gets whether a motion controller is experiencing a touchpad press.
public : PlatForm::Boolean IsTouchpadPressed { get; }public bool IsTouchpadPressed { get; }Public ReadOnly Property IsTouchpadPressed As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Whether the source is experiencing a touchpad press.
Remarks
A touchpad press represents the user clicking down on the touchpad.
Inspect TouchpadX and TouchpadY to determine where the user's finger is contacting the touchpad.
IsTouchpadTouched IsTouchpadTouched IsTouchpadTouched IsTouchpadTouched
Gets whether a motion controller is experiencing a touchpad touch.
public : PlatForm::Boolean IsTouchpadTouched { get; }public bool IsTouchpadTouched { get; }Public ReadOnly Property IsTouchpadTouched As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Whether the source is experiencing a touchpad touch.
Remarks
A touchpad touch represents the user's finger being in contact with the touchpad.
Inspect TouchpadX and TouchpadY to determine where the user's finger is contacting the touchpad.
ThumbstickX ThumbstickX ThumbstickX ThumbstickX
Gets a value between -1.0 and 1.0 representing the horizontal position of the thumbstick.
public : double ThumbstickX { get; }public double ThumbstickX { get; }Public ReadOnly Property ThumbstickX As double// You can use this property in JavaScript.
- Value
- double double double double
The thumbstick X value.
Remarks
This value ranges from -1.0 on the left to 1.0 on the right, with a center near 0.0. Note that there is no deadzone applied, so this value will not quite reach 0.0 when the thumbstick is released.
ThumbstickY ThumbstickY ThumbstickY ThumbstickY
Gets a value between -1.0 and 1.0 representing the vertical position of the thumbstick.
public : double ThumbstickY { get; }public double ThumbstickY { get; }Public ReadOnly Property ThumbstickY As double// You can use this property in JavaScript.
- Value
- double double double double
The thumbstick Y value.
Remarks
This value ranges from -1.0 on the bottom to 1.0 on the top, with a center near 0.0. Note that there is no deadzone applied, so this value will not quite reach 0.0 when the thumbstick is released.
TouchpadX TouchpadX TouchpadX TouchpadX
Gets a value between -1.0 and 1.0 representing the horizontal position of the user's finger on the touchpad.
public : double TouchpadX { get; }public double TouchpadX { get; }Public ReadOnly Property TouchpadX As double// You can use this property in JavaScript.
- Value
- double double double double
The touchpad X value.
Remarks
This value ranges from -1.0 on the left to 1.0 on the right, with a center of 0.0.
Inspect IsTouchpadTouched before reading this value to ensure that the user is touching the touchpad.
TouchpadY TouchpadY TouchpadY TouchpadY
Gets a value between -1.0 and 1.0 representing the vertical position of the user's finger on the touchpad.
public : double TouchpadY { get; }public double TouchpadY { get; }Public ReadOnly Property TouchpadY As double// You can use this property in JavaScript.
- Value
- double double double double
The touchpad Y value.
Remarks
This value ranges from -1.0 on the bottom to 1.0 on the top, with a center of 0.0.
Inspect IsTouchpadTouched before reading this value to ensure that the user is touching the touchpad.