-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
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>
Metadata
Metadata
Assignees
Labels
No labels

