次の方法で共有


SpatialInteractionManager.SourceDetected イベント

定義

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

// Register
event_token SourceDetected(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;

// Revoke with event_token
void SourceDetected(event_token const* cookie) const;

// Revoke with event_revoker
SpatialInteractionManager::SourceDetected_revoker SourceDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourceDetected;
function onSourceDetected(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcedetected", onSourceDetected);
spatialInteractionManager.removeEventListener("sourcedetected", onSourceDetected);
- or -
spatialInteractionManager.onsourcedetected = onSourceDetected;
Public Custom Event SourceDetected As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs) 

イベントの種類

適用対象