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 之間的值,表示使用者手指在觸控板上的垂直位置。

適用於

另請參閱