Language

SpatialInteractionManager クラス

定義

手、モーション コントローラー、システム音声コマンドからのユーザー入力へのアクセスを提供します。

public ref class SpatialInteractionManager 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 SpatialInteractionManager 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 SpatialInteractionManager
Public NotInheritable Class SpatialInteractionManager
継承
Object Platform::Object IInspectable SpatialInteractionManager
属性

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 で導入)

注釈

空間ジェスチャは、HoloLens の入力の重要な形式です。 SpatialInteractionManager からホログラムの SpatialGestureRecognizer に対話をルーティングすることで、アプリは Tap、 Hold、 Manipulation、 Navigation の各イベントを、手、音声、コントローラーの操作全体で一様に検出できます。

Note

ゲームパッド、キーボード、またはマウス入力デバイスから空間相互作用が検出されません。

相互作用はほとんど不透明であり、イベントは最初にのみトリガーされるため、ルーティングするジェスチャ認識エンジンは、その全体の相互作用をキャプチャできます。 代わりに、アプリは、低レベルのソース イベントを使用するか、GetDetectedSourcesAtTimestamp を使用してポーリングして、特定の手またはコントローラーによって表示される Presses、更新、リリースを手動で処理できます。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1903 18362 IsSourceKindSupported

メソッド

GetDetectedSourcesAtTimestamp(PerceptionTimestamp)

指定したタイムスタンプに対して検出されたすべての対話ソースの状態を取得します。

GetForCurrentView()

現在の CoreWindow に関連付けられている SpatialInteractionManager を取得します。

IsSourceKindSupported(SpatialInteractionSourceKind)

指定した対話ソースがこのデバイスでサポートされているかどうかを取得します。

イベント

InteractionDetected

SpatialGestureRecognizer へのルーティングに新しい対話が使用できる場合に発生します。

SourceDetected

新しい手、モーション コントローラー、または音声ソースが検出されたときに発生します。

SourceLost

手、モーション コントローラー、または音声ソースが使用できなくなった場合に発生します。

SourcePressed

手、モーション コントローラー、または音声ソースが押された状態になったときに発生します。

SourceReleased

手、モーション コントローラー、または音声ソースが押された状態を終了したときに発生します。

SourceUpdated

手、モーション コントローラー、または音声ソースで SpatialInteractionSourceState の変更が発生したときに発生します。

適用対象

こちらもご覧ください