SpatialInteractionSourceState 類別

定義

代表空間互動來源狀態的快照集, (手部、運動控制器或語音) 指定時間。

public ref class SpatialInteractionSourceState sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialInteractionSourceState final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialInteractionSourceState
Public NotInheritable Class SpatialInteractionSourceState
繼承
Object Platform::Object IInspectable SpatialInteractionSourceState
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1703 15063 ControllerProperties
1703 15063 IsGrasped
1703 15063 IsMenuPressed
1703 15063 IsSelectPressed
1703 15063 SelectPressedValue
1903 18362 TryGetHandPose

屬性

ControllerProperties

取得動作控制器特有的狀態。

IsGrasped

取得輸入裝置是否偵測到擷取/抓取動作 (使用者如何對物件採取直接動作,以操作它們) 。

IsMenuPressed

取得動作控制器是否遇到功能表按下。

IsPressed

取得手部或運動控制器是否遇到任何按下。

IsSelectPressed

取得手部或動作控制器是否遇到主要 Select 按下。

Properties

取得互動來源的進階狀態。

SelectPressedValue

取得手部或運動控制器遇到主要 Select 按下的數量,以介於 0.0 到 1.0 之間的值。

Source

取得這個狀態原因的互動來源。

Timestamp

取得擷取此狀態快照集的時間戳記。

方法

TryGetHandPose()

取得此手部使用者聯合的姿勢。

TryGetPointerPose(SpatialCoordinateSystem)

取得可用的指標姿勢,例如使用者的頭部注視、眼球注視,以及每個動作控制器的指標姿勢,用於擷取此狀態快照集時的時間戳記。

適用於

另請參閱