SpatialInteractionControllerProperties 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示特定于运动控制器的状态。
public ref class SpatialInteractionControllerProperties sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialInteractionControllerProperties final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialInteractionControllerProperties
Public NotInheritable Class SpatialInteractionControllerProperties
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
属性
| IsThumbstickPressed |
获取运动控制器是否遇到操纵杆按下。 |
| IsTouchpadPressed |
获取运动控制器是否遇到触摸板按下。 |
| IsTouchpadTouched |
获取运动控制器是否遇到触摸板触摸。 |
| ThumbstickX |
获取一个介于 -1.0 和 1.0 之间的值,该值表示操纵杆的水平位置。 |
| ThumbstickY |
获取一个介于 -1.0 和 1.0 之间的值,该值表示操纵杆的垂直位置。 |
| TouchpadX |
获取一个介于 -1.0 和 1.0 之间的值,该值表示用户手指在触摸板上的水平位置。 |
| TouchpadY |
获取一个介于 -1.0 和 1.0 之间的值,该值表示用户手指在触摸板上的垂直位置。 |