Skip to content

axismove event returns incorrect values in Oculus Quest  #4472

@Sujoy-Ghosh

Description

@Sujoy-Ghosh

Description:
the axismove event always returns incorrect axis [0, 0, 0, -0] and incorrect changed [false, false, false, false] in Oculus Browser in Oculus Quest.
It also returns incorrect axis [0, -0] and incorrect changed [false, false] in Firefox Reality.

  • A-Frame Version: 1.0.4
  • Platform / Device: Oculus Browser and Firefox Reality in Oculus Quest
  • Reproducible Code Snippet or URL:
<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
  <script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
</head>
<body>
  <a-scene>
    <a-entity id="rig" position="0 0 0">
      <a-camera id="head" look-controls-enabled wasd-controls-enabled mouse-cursor cursor="rayOrigin: mouse"
      >
      </a-camera>
      <a-entity id="rightHand" laser-controls="hand: right">
      </a-entity>    
      <a-entity id="leftHand" oculus-touch-controls="hand: left" vive-controls="hand: left"
      ></a-entity>
    </a-entity>
    <a-entity environment="preset: contact"></a-entity>
  </a-scene>
  <script>
    let leftHand= document.querySelector("a-entity[id='leftHand']");
    leftHand.addEventListener("axismove", evt => {
      console.log(evt);
    });   
    let rightHand = document.querySelector("a-entity[id='rightHand']");
    rightHand .addEventListener("axismove", evt => {
      console.log(evt);
    });
  </script>
</body>

axismove-event-firefox-reality
axismove-event-oculus-browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions