Skip to main content
Participant
December 5, 2019

Is Right Menu (Oculus) Button Of Touch Controller Accessible In Unity?

Does anyone definitively know whether the right menu (Oculus) button of the Oculus Touch Controllers is accessible in Unity? I understand this menu button is used for Oculus system-level activities (system level guardian recentering and accessing the application resume/quit menu) but I was wonder if I can augment and/or hijack this functionality with my own functionality in Unity.

When I use this API on the right controller, the 'pressed' variable is always false.

InputDevice.TryGetFeatureValue(CommonUsages.menuButton, out var pressed)
 
For the left controller, the 'pressed' variable returns accurate values when the left menu button is pressed/released.

I've not found documentation on the restricted behavior of the right menu button anywhere.
    This topic has been closed for replies.

    2 replies

    Inspiring
    December 5, 2019
    If you use the unity input system, Input.GetKey(KeyCode.JoystickButton6) (left menu button) is the only way and there are no other menu buttons mapped. But thats not definitive, however the image in this documantation declares the (right) 'oculus button' to be 'reserved' which should be definitive.

    https://developer.oculus.com/documentation/unity/latest/concepts/unity-ovrinput/#touch-input-mapping
    Participant
    December 9, 2019
    I found that it is possible to hook the right menu recenter event. To do this, you need to import the Oculus Utilities into your Unity app, add OVRManager to a game object in your scene and then add a callback like this:

    OVRManager.display.RecenteredPose += YourCallback;