SpatialInteractionControllerProperties 类

定义

表示特定于运动控制器的状态。

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
继承
Object Platform::Object IInspectable 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 之间的值,该值表示用户手指在触摸板上的垂直位置。

适用于

另请参阅