Is it possible for a webpage to listen for button presses of a Oculus controller simply using some generic javascript code like document.addEventListener?
In VR browsers by default the primary thumbstick scrolls the page up and down. The idea is to re-map it to trigger different actions.
From my research it looks like I need to use an A-frame but I'm looking for a generic solution that works across different websites with just Vanilla Javascript, not inside an immersive context.