swap keyboard hand on hand swap

This commit is contained in:
Kevin Ngo
2018-10-10 01:36:02 -07:00
parent bbfd55c16d
commit 4fd7f2713c

View File

@@ -215,7 +215,7 @@
<a-entity
id="keyboard"
bind__super-keyboard="show: keyboardActive"
bind__super-keyboard="hand: activeHand === 'left' && '#leftHand' || '#rightHand'; show: keyboardActive"
super-keyboard="label: Search from over 2500 songs!; labelColor: #FAFAFA; width: 1; hand: {{ DEBUG_KEYBOARD and '#mouseCursor' or '#rightHand' }}; imagePath: assets/img/keyboard/; injectToRaycasterObjects: false"
position="0 0.8 -1"
rotation="-40 0 0"