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

Eye Gaze and Button FocusTimeout #8

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

davilovick
Copy link
Contributor

@davilovick davilovick commented Oct 30, 2023

Overview

This PR introduce two changes:

  • GazeProvider has been changed to allow the possibility to use the Eye Gaze. This feature is only supported in HoloLens 2 device.
  • PressableButton has the property FocusSelectionTime. If a button is focused during the time specified in the property, the button will be pressed. Additionally, this PR modify the IPressableButtonFeedback class adding the void FocusTimeout(float timeout), allowing components to represent visually the timeout process till the button will be pressed.

How to test

  1. Create a MRTK application.
  2. In the XRScene, set the property EnableEyeGaze to true, this will enable the eye gaze.
  3. With your eye gaze (in Hololens) or with a controller, focus one of the three round buttons during 2 seconds. The button must be pressed.

@davilovick davilovick marked this pull request as draft October 31, 2023 08:04
@davilovick davilovick changed the title Eye Gaze Eye Gaze and Button FocusTimeout Nov 3, 2023
@davilovick davilovick marked this pull request as ready for review November 3, 2023 10:49
@MarcosCobena
Copy link

Hi @davilovick,

I have successfully added eye tracking feature to our project (see feature/tecnatom-guiadohololens branch) by enabling it on two of our buttons.

Please consider adding this commit to the PR in case you find it suitable:

247ce73

Thank you for all the hard work mate,

—Marcos

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

Successfully merging this pull request may close these issues.

None yet

2 participants