SpatialGestureRecognizer.Tapped 事件

定义

在识别点击或双拍手势时发生。

// Register
event_token Tapped(TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::Tapped_revoker Tapped(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialTappedEventArgs> Tapped;
function onTapped(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("tapped", onTapped);
spatialGestureRecognizer.removeEventListener("tapped", onTapped);
- or -
spatialGestureRecognizer.ontapped = onTapped;
Public Custom Event Tapped As TypedEventHandler(Of SpatialGestureRecognizer, SpatialTappedEventArgs) 

事件类型

注解

对于手部交互, SpatialTappedEventArgs 事件在手指按下后松开手指时触发。

对于语音交互,此事件在处理系统语音命令“Select”后触发。

对于运动控制器交互,当按下“选择”触发器或按钮后释放时,将触发此事件。

适用于