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

Generalize pointer scaling and color change during trigger event #1076

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

elima
Copy link
Contributor

@elima elima commented Oct 20, 2023

This series extends to controllers the feature we currently have for pinch gesture, where the pointer target is scaled as the pinch gesture closes, until it is fully closed and the color is changed to blue.

With this, we provide a nice visual cue of the trigger event to the user when using the controllers, and also make Wolvic interactions more consistent.

As part of this change, we rename Controller::pinchFactor to Controller::selectFactor accordingly, since it is now used beyond pinch.

Also, we propose reducing the maximum pointer radius a bit, which was (arguably) a bit too big already for hand-tracking.

Right now we are using the `pinchFactor` value to scale the pointer target
as a select (trigger) gesture is closing during hand-tracking.

But since we are going to extend this to controllers' trigger button, we
are renaming it to `selectFactor` to make it generic to a select event.
This patch extends the feature we currently have for pinch gesture,
where the pointer target is scaled as the pinch gesture closes, until
it is fully closed and the color is changed to blue.

With this, we provide a nice visual cue of the trigger event to the
user, and also make Wolvic interactions more consistent.
It was (arguably) a bit too big already, and now that we are using it
for controllers too, it makes sense to reduce it a bit.
Copy link
Collaborator

@felipeerias felipeerias left a comment

Choose a reason for hiding this comment

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

LGTM

@felipeerias felipeerias merged commit eff0541 into main Oct 20, 2023
18 checks passed
@felipeerias felipeerias deleted the generalize-pointer-scaling branch October 20, 2023 12:58
felipeerias pushed a commit that referenced this pull request Oct 20, 2023
* Renames Controller::pinchFactor to Controller::selectFactor

Right now we are using the `pinchFactor` value to scale the pointer target
as a select (trigger) gesture is closing during hand-tracking.

But since we are going to extend this to controllers' trigger button, we
are renaming it to `selectFactor` to make it generic to a select event.

* Scale down and change color of pointer target during select event

This patch extends the feature we currently have for pinch gesture,
where the pointer target is scaled as the pinch gesture closes, until
it is fully closed and the color is changed to blue.

With this, we provide a nice visual cue of the trigger event to the
user, and also make Wolvic interactions more consistent.

* Reduce pointer target maximum size a bit

It was (arguably) a bit too big already, and now that we are using it
for controllers too, it makes sense to reduce it a bit.
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.

2 participants