Windows.Devices.Input.Preview Windows.Devices.Input.Preview Windows.Devices.Input.Preview Windows.Devices.Input.Preview Windows.Devices.Input.Preview Namespace

Provide support for tracking a user's gaze, attention, and presence based on the location and movement of their eyes and head.


For gaze input in Windows Mixed Reality, see Gaze.


GazeDevicePreview GazeDevicePreview GazeDevicePreview GazeDevicePreview GazeDevicePreview

Supports the ability to identify and manage all connected eye-tracker devices.

GazeDeviceWatcherAddedPreviewEventArgs GazeDeviceWatcherAddedPreviewEventArgs GazeDeviceWatcherAddedPreviewEventArgs GazeDeviceWatcherAddedPreviewEventArgs GazeDeviceWatcherAddedPreviewEventArgs

Provides event data for the GazeDeviceWatcherPreview.Added event.

GazeDeviceWatcherPreview GazeDeviceWatcherPreview GazeDeviceWatcherPreview GazeDeviceWatcherPreview GazeDeviceWatcherPreview

Dynamically detects and enumerates eye-tracking devices, and receives event notifications when a device is added, removed, or updated after the initial enumeration.

GazeDeviceWatcherRemovedPreviewEventArgs GazeDeviceWatcherRemovedPreviewEventArgs GazeDeviceWatcherRemovedPreviewEventArgs GazeDeviceWatcherRemovedPreviewEventArgs GazeDeviceWatcherRemovedPreviewEventArgs

Provides event data for the GazeDeviceWatcherPreview.Removed event.

GazeDeviceWatcherUpdatedPreviewEventArgs GazeDeviceWatcherUpdatedPreviewEventArgs GazeDeviceWatcherUpdatedPreviewEventArgs GazeDeviceWatcherUpdatedPreviewEventArgs GazeDeviceWatcherUpdatedPreviewEventArgs

Provides event data for the GazeDeviceWatcherPreview.Updated event.

GazeEnteredPreviewEventArgs GazeEnteredPreviewEventArgs GazeEnteredPreviewEventArgs GazeEnteredPreviewEventArgs GazeEnteredPreviewEventArgs

Provides event data for the GazeEntered event.

GazeExitedPreviewEventArgs GazeExitedPreviewEventArgs GazeExitedPreviewEventArgs GazeExitedPreviewEventArgs GazeExitedPreviewEventArgs

Provides event data for the GazeExited event.

GazeInputSourcePreview GazeInputSourcePreview GazeInputSourcePreview GazeInputSourcePreview GazeInputSourcePreview

Represents the eyes and head of the user identified by an eye-tracking device.

GazeMovedPreviewEventArgs GazeMovedPreviewEventArgs GazeMovedPreviewEventArgs GazeMovedPreviewEventArgs GazeMovedPreviewEventArgs

Provides event data for the GazeMoved event.

GazePointPreview GazePointPreview GazePointPreview GazePointPreview GazePointPreview

Provides basic properties for the gaze input point associated with a single eye-tracking device.


GazeDeviceConfigurationStatePreview GazeDeviceConfigurationStatePreview GazeDeviceConfigurationStatePreview GazeDeviceConfigurationStatePreview GazeDeviceConfigurationStatePreview

Specifies the possible configuration states of an eye-tracking device.


Support for eye-tracking hardware was introduced in Windows 10 Fall Creators Update along with Eye control, a built-in feature that lets you use your eyes to control the on-screen pointer, type with the on-screen keyboard, and communicate with people using text-to-speech. This set of UWP APIs for building applications that can interact with eye tracking hardware is supported in RS4 and later.

See Get started with eye control in Windows 10 for a list of supported eye-tracking devices.

To use the gaze input APIs and access both internal and peripheral devices such as eye trackers, you must register the gazeInput capability in the app manifest. Just add the following DeviceCapability to the Capabilities node in the Package.appxmanifest file of your project:

   <DeviceCapability Name="gazeInput" />

See also