activatable component and sticky behavior
Added activatable component, which allows a button to cause secondary activations to occur while an object is grabbed. Also made the pen "sticky" so it stays attached to your hand when you grab it. It can then only be dropped by using the "primary" grab button (e.g. grip buttons). The triggers now are "secondary_action" buttons, which work like normal except in the case that you are holding a sticky object, in which case they will not cause the object to be dropped.
Showing
- src/components/tools/pen.js 7 additions, 5 deletionssrc/components/tools/pen.js
- src/hub.html 7 additions, 5 deletionssrc/hub.html
- src/input-mappings.js 4 additions, 4 deletionssrc/input-mappings.js
- src/utils/action-event-handler.js 29 additions, 8 deletionssrc/utils/action-event-handler.js
- yarn.lock 2 additions, 2 deletionsyarn.lock
Loading
Please register or sign in to comment