共用方式為


SpatialInteractionManager.SourceUpdated 事件

定義

發生于手部、動作控制器或語音來源已變更其 SpatialInteractionSourceState時。

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

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

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

事件類型

適用於