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

Improve scrolling using eye tracking #1570

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Improve scrolling using eye tracking #1570

merged 2 commits into from
Oct 17, 2024

Conversation

svillar
Copy link
Member

@svillar svillar commented Oct 10, 2024

This PR fixes a couple of issues with the current gesture to scroll using eye tracking:

  1. it allows users to scroll with both hands, initially it was only tied to the right hand
  2. it prevents scrolling by moving the eyes. The scroll gesture should be done with the hand or the controller but not with the gaze. The current code scrolls if user moves their eyes up and down while pinching/clicking and holding.

To fix that we pass a new parameter to the Update() method in the input source carrying the transform for the eye gaze. That transform would be used to set the starting point of the scroll action if there is a scroll or the pointer position otherwise.

Methods like Update(), EmulateControllerFromHands() or HandleEyeTrackingScroll() are suffering from bad design decisions and this PR does not improve the situation. In any case that's a different topic and should be addressed in a separate PR.

Tested in:

  • Pico 4E (5.11.1)
  • Meta Quest Pro (v71)
  • Magic Leap 2

Fixes #1571, fixes #1572

This PR fixes a couple of issues with the current gesture to scroll
using eye tracking:
1. it allows users to scroll with both hands, initially it was only
tied to the right hand
2. it prevents scrolling by moving the eyes. The scroll gesture
should be done with the hand or the controller but not with the gaze.
The current code scrolls if user moves their eyes up and down while
pinching/clicking and holding.

To fix that we pass a new parameter to the Update() method in the
input source carrying the transform for the eye gaze. That transform
would be used to set the starting point of the scroll action if
there is a scroll or the pointer position otherwise.

Methods like Update(), EmulateControllerFromHands() or
HandleEyeTrackingScroll() are suffering from bad design
decisions and this PR does not improve the situation. In any case
that's a different topic and should be addressed in a separate PR.

Tested in:
* Pico 4E (5.11.1)
* Meta Quest Pro (v71)
* Magic Leap 2
Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

@svillar svillar merged commit e72b8a8 into main Oct 17, 2024
22 checks passed
@svillar svillar deleted the eye_tracking_scrolling branch October 17, 2024 14:28
felipeerias pushed a commit that referenced this pull request Oct 21, 2024
* Improve scrolling using eye tracking

This PR fixes a couple of issues with the current gesture to scroll
using eye tracking:
1. it allows users to scroll with both hands, initially it was only
tied to the right hand
2. it prevents scrolling by moving the eyes. The scroll gesture
should be done with the hand or the controller but not with the gaze.
The current code scrolls if user moves their eyes up and down while
pinching/clicking and holding.

To fix that we pass a new parameter to the Update() method in the
input source carrying the transform for the eye gaze. That transform
would be used to set the starting point of the scroll action if
there is a scroll or the pointer position otherwise.

Methods like Update(), EmulateControllerFromHands() or
HandleEyeTrackingScroll() are suffering from bad design
decisions and this PR does not improve the situation. In any case
that's a different topic and should be addressed in a separate PR.

Tested in:
* Pico 4E (5.11.1)
* Meta Quest Pro (v71)
* Magic Leap 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants