Share via


SpatialInteractionSource.Handedness 屬性

定義

取得互動來源代表使用者的左手還是右手。

public:
 property SpatialInteractionSourceHandedness Handedness { SpatialInteractionSourceHandedness get(); };
SpatialInteractionSourceHandedness Handedness();
public SpatialInteractionSourceHandedness Handedness { get; }
var spatialInteractionSourceHandedness = spatialInteractionSource.handedness;
Public ReadOnly Property Handedness As SpatialInteractionSourceHandedness

屬性值

手部。

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

對於具有固有手部的控制器,無論控制器實際保留在哪一個手部,這一律都會傳回該手部。

對於不支援位置追蹤且沒有固有手部的控制器,例如 HoloLens 點選器,這一律會傳回 Unspecified。

對於任一手都可以保存的控制器,系統可能會使用啟發學習法來判斷手部,並傳回 Unspecified 直到決定為止。 如果這類控制器變更手部,來源會遺失,並使用目前的手部重新偵測。

對於 HoloLens 上的手部和語音來源,此屬性一律會傳回 Unspecified。

適用於