Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.94 KB

windows_devices_input_preview.md

File metadata and controls

37 lines (24 loc) · 1.94 KB
-api-id -api-type
N:Windows.Devices.Input.Preview
winrt namespace

Windows.Devices.Input.Preview

-description

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.

-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

Gaze interactions and eye tracking in UWP apps, Gaze input sample (basic), Windows Community Toolkit Gaze library

-examples