Oculus quest 2 button events?

Hi I’m trying to get events from oculus quest 2, from a-button, x-button but I couldn’t find anything on three js docs sites (even sean bradley don’t use them). I found on babylonjs they have controllerGrip.addEventListener(“a-button”, …), but this one is not working in three JS.

Can someone give me advice / piece of code how to get to those events ?

Can’t you use the approach discussed in the following topic?

I wanted to avoid pooling architecture, I was searching for eventListener, but if there is no way I will check if buttons are pressed/unpressed in every step.

Pooling can’t be avoided in any event since it’s how the Gamepad API works. You probably have to write a small wrapper with custom events if you want to use event listeners on app level.

1 Like