Skip to content

Commit

Permalink
Added support for oculus
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandojsg committed Oct 30, 2017
1 parent d9545fa commit 6127524
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script src="../build.js"></script>
<script src="../common/shaders/skyGradient.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-input-mapping-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-input-mapping-component.js"></script>
</head>
<body style="background-color: #000">
<a-scene>
Expand All @@ -17,7 +17,7 @@
material="src: url(floor.jpg); repeat: 80 80">
</a-entity>
<!-- hand controls -->
<a-entity teleport-controls="startEvents: teleportstart"
<a-entity teleport-controls="startEvents: teleportstart; endEvents: teleportend"
vive-controls="hand: left"
oculus-touch-controls="hand: left"
microsoft-motion-controls="hand: left"
Expand All @@ -39,6 +39,8 @@
trackpadup: 'teleportend'
},
'oculus-touch-controls': {
xbuttondown: 'teleportstart',
xbuttonup: 'teleportend',
abuttondown: 'teleportstart',
abuttonup: 'teleportend'
},
Expand Down

0 comments on commit 6127524

Please sign in to comment.