micahstubbs / doc2space

1 stars 0 forks source link

add thumbstick teleport for Quest controllers #4

Open micahstubbs opened 4 years ago

micahstubbs commented 4 years ago

something like this

        //
        // thumbstick teleport with Oculus Touch Controllers
        //

        //thumbstick Touched
        this.el.addEventListener('thumbsticktouchstart', function(e) {
          //Start pointing position to teleport
          this.emit('teleportstart')
        })

        //thumbstick Released
        this.el.addEventListener('thumbsticktouchend', function(e) {
          //Jump to pointed position
          this.emit('teleportend')
        })
micahstubbs commented 4 years ago

https://aframe.io/docs/0.9.0/components/oculus-touch-controls.html#events_thumbsticktouchstart

https://github.com/aframevr/aframe/issues/3928#issuecomment-450310831