GazeInputSourcePreview.GazeMoved 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
// 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)
事件類型
備註
此事件可能會引發許多事件。 請注意您放入處理常式之程式碼的效能設定檔,並考慮使用您自己的旗標或容錯的方式,以節流邏輯實際需要執行的次數。