Dela via


GazeInputSourcePreview.GazeMoved Event

Definition

Occurs when the eye-tracking device detects eye movement and the gaze pointer remains within the bounding rectangle of the element.

// 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) 

Event Type

Remarks

This event can fire a lot. Be aware of the performance profile for code you put into the handler, and consider ways to use your own flags or tolerances that can throttle how many times the logic actually needs to run.

Applies to

See also