GazeInputSourcePreview.GazeMoved 事件

定义

当目视跟踪设备检测到眼睛移动且 凝视指针 保留在元素的边界矩形内时发生。

// Register
event_token GazeMoved(TypedEventHandler<GazeInputSourcePreview, GazeMovedPreviewEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GazeInputSourcePreview::GazeMoved_revoker GazeMoved(auto_revoke_t, TypedEventHandler<GazeInputSourcePreview, GazeMovedPreviewEventArgs const&> const& handler) const;
public event TypedEventHandler<GazeInputSourcePreview,GazeMovedPreviewEventArgs> GazeMoved;
function onGazeMoved(eventArgs) { /* Your code */ }
gazeInputSourcePreview.addEventListener("gazemoved", onGazeMoved);
gazeInputSourcePreview.removeEventListener("gazemoved", onGazeMoved);
- or -
gazeInputSourcePreview.ongazemoved = onGazeMoved;
Public Custom Event GazeMoved As TypedEventHandler(Of GazeInputSourcePreview, GazeMovedPreviewEventArgs) 

事件类型

注解

此事件可能会触发很多。 请注意放入处理程序中的代码的性能配置文件,并考虑使用自己的标志或容差的方法,这些标志或容差可能会限制逻辑实际需要运行的次数。

适用于

另请参阅