Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Lordslimeball's avatar
4 years ago

Detect forward orientation reset request in progress Quest 2 with Unity

Hi,

 

I am developing an App for the Quest 2 with Unity. I would like to be able to detect that the user is pressing and holding the Oculus button on the right controller to reset the forward orientation. Does anyone know how to do this?

 

I can already detect if the user has pressed the Oculus button once with OVRPlugin.hasInputFocus, but this does not detect if the button is being pressed and held. I also tried OVRManager.OnPaused etc and it also did not work.

 

Thanks

1 Reply

  • I am looking to do the exact same thing. I was hoping to find a sort of event like
    InputDevices.GetDeviceAtXRNode(XRNode.Head).subsystem.OnRecenter

    But we otherwise currently have no way of detecting an actual recenter.