-api-id | -api-type |
---|---|
N:Windows.Devices.Input.Preview |
winrt 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.
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>
Gaze interactions and eye tracking in UWP apps, Gaze input sample (basic), Windows Community Toolkit Gaze library