Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GazeHidTest: Unable to open gaze HID: HidDevice.FromIdAsync returns null #6

Closed
lostmsu opened this issue May 26, 2022 · 5 comments
Closed

Comments

@lostmsu
Copy link

lostmsu commented May 26, 2022

I had to manually go to system Settings -> Privacy -> Eye tracker and enable it for GazeHidTest in order for it to appear in DeviceInformation.FindAllAsync(selector) (without this action the returned array was emtpy).

Still can not open the device itself. In this line _eyeTracker is null.

I also tried to do HidDevice.FromAsyncId from non-sandboxed app (e.g. desktop WPF) with the same result. When I manually try to call CreateFile (via a 3rd party library) on the HID device I get explicit Access Denied error, even when the app is launched as administrator.

Is opening eye tracker HID device a supported scenario? If not, is there any other way to read coordinate reports from a non-UWP app (desktop WPF or Win32)?

Environment

OS: Windows 10 21H2 (19044.1706)
Hardware: Tobii Eye Tracker
image

P.S. Eye control feature in Windows works

@joncamp
Copy link
Contributor

joncamp commented Jun 10, 2022

Thanks for your interest in these features. I just want to be sure I am tracking what you are trying to do. Based on the above screenshot it appears that you are using a Tobii eye tracker? If so, which model and divers are you using?

@lostmsu
Copy link
Author

lostmsu commented Jun 11, 2022

I am using the old EyeX. I can read the data using Tobii legacy library, but I was interested in doing it in a device-independent way.

@joncamp
Copy link
Contributor

joncamp commented Jun 12, 2022

Excellent - and to further verify - you are able to access eye tracking using UWP based solutions (Eye Control for Windows, Eyes First Games, or custom code)? If the eye tracker isn't working with HID at all using UWP, then it's likely a driver issue. There have been times where the tobii driver's support of HID was having issues.

@lostmsu
Copy link
Author

lostmsu commented Jun 12, 2022

The GazeTracing app, that uses GazeInputSourcePreview from this repo works fine, so does Windows "Eye control" feature in settings.

@joncamp
Copy link
Contributor

joncamp commented Jun 13, 2022

Ok - so it sounds like the HID support in the driver itself is working, as well as the underlying windows HID support that connects to UWP. Currently there is no support for non-UWP HID access through the Windows APIs, though I encourage you to submit feedback via the Feeback Hub app. microsoft/WindowsAppSDK#432 tracks one such proposal, so I encourage you to comment on that as well.

There may also be a driver level setting preventing access - consider reaching out to Tobii developer support and see what they say.

@joncamp joncamp closed this as completed Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants