Forum Discussion
ratmat2000
6 years agoExplorer
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
- rh_galaxyHeroic ExplorerIf 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 - ratmat2000ExplorerI 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;
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 8 months ago