Share via


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.

Note

For gaze input in Windows Mixed Reality, see Gaze.

Classes

GazeDevicePreview

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

GazeDeviceWatcherAddedPreviewEventArgs

Provides event data for the GazeDeviceWatcherPreview.Added event.

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

Provides event data for the GazeDeviceWatcherPreview.Removed event.

GazeDeviceWatcherUpdatedPreviewEventArgs

Provides event data for the GazeDeviceWatcherPreview.Updated event.

GazeEnteredPreviewEventArgs

Provides event data for the GazeEntered event.

GazeExitedPreviewEventArgs

Provides event data for the GazeExited event.

GazeInputSourcePreview

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

GazeMovedPreviewEventArgs

Provides event data for the GazeMoved event.

GazePointPreview

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

Enums

GazeDeviceConfigurationStatePreview

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

Remarks

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:

<Capabilities>
   <DeviceCapability Name="gazeInput" />
</Capabilities>

See also