Search Unity

Oculus Quest Touch Controller Question: Is Right Menu Button Accessible In Unity?

Discussion in 'AR/VR (XR) Discussion' started by Yumby, Dec 5, 2019.

  1. Yumby

    Yumby

    Joined:
    Aug 17, 2012
    Posts:
    19
    Does anyone definitively know whether the right menu button of the newest 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.