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

0.0 ~ 1.0 の値として、手またはモーション コントローラーで主要な Select プレスが発生している量を取得します。

Source

この状態で記述される相互作用ソースを取得します。

Timestamp

この状態スナップショットが取得されたタイムスタンプを取得します。

メソッド

TryGetHandPose()

この手のユーザーの関節のポーズを取得します。

TryGetPointerPose(SpatialCoordinateSystem)

ユーザーの頭の視線入力、視線入力、各モーション コントローラーのポインターポーズなど、この状態スナップショットが取得されたときのタイムスタンプに使用できるポインターのポーズを取得します。

適用対象

こちらもご覧ください