Devices. Input. Preview Namespace
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Supports the ability to identify and manage all connected eye-tracker devices.
Provides event data for the GazeDeviceWatcherPreview.Added event.
Dynamically detects and enumerates eye-tracking devices, and receives event notifications when a device is added, removed, or updated after the initial enumeration.
Provides event data for the GazeDeviceWatcherPreview.Removed event.
Provides event data for the GazeDeviceWatcherPreview.Updated event.
Provides event data for the GazeEntered event.
Provides event data for the GazeExited event.
Represents the eyes and head of the user identified by an eye-tracking device.
Provides event data for the GazeMoved event.
Provides basic properties for the gaze input point associated with a single eye-tracking device.
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:
<Capabilities> <DeviceCapability Name="gazeInput" /> </Capabilities>