SpatialInteractionManager.SourcePressed 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当手部、运动控制器或语音源进入按下状态时发生。
// Register
event_token SourcePressed(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
// Revoke with event_token
void SourcePressed(event_token const* cookie) const;
// Revoke with event_revoker
SpatialInteractionManager::SourcePressed_revoker SourcePressed(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourcePressed;
function onSourcePressed(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcepressed", onSourcePressed);
spatialInteractionManager.removeEventListener("sourcepressed", onSourcePressed);
- or -
spatialInteractionManager.onsourcepressed = onSourcePressed;
Public Custom Event SourcePressed As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs)
事件类型
注解
检查 PressKind 以确定新闻机的性质。