Add saber controls

This commit is contained in:
Diego Marcos
2018-09-14 10:55:19 -07:00
parent ab6c33f465
commit 02e9ced3b7
2 changed files with 47 additions and 2 deletions

View File

@@ -46,12 +46,12 @@
<a-entity id="cameraRig">
<a-entity id="camera" position="0 1.6 0.5" camera look-controls></a-entity>
<a-entity id="leftHand"
controller="hand: left"
saber-controls="hand: left"
proxy-event__pause="event: menudown; to: a-scene; as: pause"
proxy-event__pauserifta="event: abuttondown; to: a-scene; as: pause"
proxy-event__pauseriftb="event: bbuttondown; to: a-scene; as: pause"></a-entity>
<a-entity id="rightHand"
controller="hand: right"
saber-controls="hand: right"
proxy-event__pause="event: menudown; to: a-scene; as: pause"
proxy-event__pauseriftx="event: xbuttondown; to: a-scene; as: pause"
proxy-event__pauserifty="event: ybuttondown; to: a-scene; as: pause"></a-entity>