You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: gate hamburger menu behind a 1s hold gesture
VR controllers expose very few buttons, so the same button has to serve
more than one purpose. The hamburger menu was bound to the left-hand
secondary button on release, which made a quick tap unavailable to
anything else and prone to accidental firing.
Introduce a reusable HoldGesture struct and require the secondary button
to be held for 1s to toggle the menu. This protects the menu from
misfire and, more importantly, frees the button's quick tap: the VR
camera fly mode can now claim a tap on the same button without the menu
also reacting. A future quick menu on the other controller can adopt the
same pattern by adding its own ActionId + HoldGesture field and binding
it to that hand.
The enum/method name is kept as ToggleHamburgerOnSecondaryRelease so
existing saved bindings (serialised by action name) keep resolving.
0 commit comments