Forum Discussion

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

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.

2 Replies

Replies have been turned off for this discussion
  • 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;