Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

Specify the controller Id when triggering haptic feedback #1506

Closed javifernandez closed 3 months ago

javifernandez commented 3 months ago

We are sending the haptic feedback to the controller that got the focus due to the last click event. This causes that hovering events generated by the other controller still send the haptic feedback to the inactive controller.

This change defines a new argument in the triggerHapticFeedback function to pass the Id associated to the controller that generated the hovering event.

Fixes #1488