webxr-input-profiles icon indicating copy to clipboard operation
webxr-input-profiles copied to clipboard

XRInputSource Gamepad reports empty axes array

Open agandia opened this issue 3 years ago • 0 comments

First of all, I am not sure if this is the appropriate place to report this issue, but I will try nonetheless and feel free to move it if necessary.

XRInputSource should be conforming with 'xr-standard' mapping but reports an empty Axes array.

HMD: Oculus quest 2. Profile used is forced to 'oculus-touch-v3' since a bug from OculusVR reports the following profiles : (2) ["oculus-touch", "generic-trigger-squeeze-thumbstick"]

I load my motion controller profile using the tools given by the webxr-input-profiles package but when I try to retrieve axis data to animate my motion controller (as per the sample code in https://immersive-web.github.io/webxr-input-profiles/packages/motion-controllers/#thumbstick-and-touchpad-components) the components' value object contains the following data.

  1. State reports default
  2. Button reports 0
  3. xAxis and yAxis report 0

The value retrieved from the visualResponse node for the axes is 0.5.

ie. console.log('thumbstick %s , values [state: %s, button: %f, xAxis: %f, yAxis: %f]', component.rootNodeName, component.values.state, component.values.button, component.values.xAxis, component.values.yAxis);

Expected behavior XRInputSource to have a valid Axes array where the data is updated.

Screenshots image

Version ├── @webxr-input-profiles/[email protected] ├── @webxr-input-profiles/[email protected]

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise Version 10.0.18363 Build 18363
  • 3D engine: corporative 3D engine
  • Browser Google Chrome
  • Version 88.0.4324.146

All other buttons and triggers report correct live data and I have managed to animate the corresponding buttons. I'd appreciate any insight on the source of the issue.

Thank you

agandia avatar Feb 08 '21 15:02 agandia