Skip to main content
June 30, 2020
Solved

WebXR: how to migrate from oculus go to qwest?

  • June 30, 2020
  • 1 reply
  • 1536 views
I'm using Oculus Go controls (touchpad + trigger) in my WebXR molecular viewer at www.ibiblio.org/e-notes/webxr/mini.htm. To migrate from Go to Quest I'd like to know, what corresponds to "selectend event" and "xrSession.inputSources[0].gamepad.axes[0/1] on Quest?
Best answer by
On the Quest thumbstick is exposed as xrSession.inputSources[0/1].gamepad.axes[touchpad X, touchpad Y, thumbstick X, thumbstick Y] where 0/1 correspond to the right/left hands. Therefore axes[2,3] should be used (instead axes[0,1] on the Go) to get X,Y coordinates. See e.g. www.ibiblio.org/e-notes/webxr/mini/micro3q.htm.

1 reply

Answer
September 20, 2020
On the Quest thumbstick is exposed as xrSession.inputSources[0/1].gamepad.axes[touchpad X, touchpad Y, thumbstick X, thumbstick Y] where 0/1 correspond to the right/left hands. Therefore axes[2,3] should be used (instead axes[0,1] on the Go) to get X,Y coordinates. See e.g. www.ibiblio.org/e-notes/webxr/mini/micro3q.htm.