SpatialInteractionManager.SourceReleased 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于手部、動作控制器或語音來源已結束按下的狀態時。
// Register
event_token SourceReleased(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
// Revoke with event_token
void SourceReleased(event_token const* cookie) const;
// Revoke with event_revoker
SpatialInteractionManager::SourceReleased_revoker SourceReleased(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourceReleased;
function onSourceReleased(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcereleased", onSourceReleased);
spatialInteractionManager.removeEventListener("sourcereleased", onSourceReleased);
- or -
spatialInteractionManager.onsourcereleased = onSourceReleased;
Public Custom Event SourceReleased As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs)
事件類型
備註
檢查 PressKind 以判斷發行的本質。