Condividi tramite


GazeInputSourcePreview.GazeMoved Evento

Definizione

Si verifica quando il dispositivo di rilevamento oculare rileva lo spostamento oculare e il puntatore dello sguardo rimane all'interno del rettangolo di delimitazione dell'elemento.

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

Tipo evento

Commenti

Questo evento può generare molto. Tenere presente il profilo delle prestazioni per il codice inserito nel gestore e prendere in considerazione i modi per usare flag o tolleranza personalizzati che possono limitare il numero di volte in cui la logica deve effettivamente essere eseguita.

Si applica a

Vedi anche