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 以确定发布的性质。