UWP application is not able to set IsSupportedDevice for Hololens2

Padmashri Suresh 21 Reputation points
2021-10-07T16:44:30.517+00:00

Sample reference : https://github.com/MicrosoftDocs/windows-topic-specific-samples/archive/uwp-gazeinput-basic.zip
Issue seen IsSupportedDevice is not getting set

/// Check if eye-tracking device is viable.

/// <param name="gazeDevice">Reference to eye-tracking device.</param>
/// <returns>True, if device is viable; otherwise, false.</returns>
private bool IsSupportedDevice(GazeDevicePreview gazeDevice)
{
TrackerState.Text = gazeDevice.ConfigurationState.ToString();
return (gazeDevice.CanTrackEyes &&
gazeDevice.ConfigurationState ==
GazeDeviceConfigurationStatePreview.Ready);
}

Ensured that gazeinput is enabled in the manifest file. Still the issue persist in the UWP application. please suggest what needs to be done.

Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
380 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
    2021-10-07T18:27:15.62+00:00

    That is correct behavior. Mixed Reality Gaze (supported by HoloLens) and UWP Gaze Input (supported by GazeDevicePreview) are not directly related.

    The GazeDevicePreview classes manage external eye trackers such as several by Tobii. See Eye control supports the following eye tracking devices.

    The Note in Gaze interactions and eye tracking in Windows apps calls this out and points you to the Mixed Reality docs.

    For gaze input in Windows Mixed Reality, see Gaze.

    There are several types of Gaze tracking for Mixed Reality as some devices support eye tracking and some support head tracking. For HoloLens 2 Eye tracking see https://learn.microsoft.com/en-us/windows/mixed-reality/design/eye-tracking

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful