Forum Discussion
anders.rein
3 years agoExplorer
What is the OpenXR equivalent for ovrTouch_ThumbUp from the old VrAPI?
I'm having trouble getting the thumb up trigger to work correctly after migrating to the OpenXR API. If I use the …/input/thumbrest/touch it is only the flat space without buttons that trigger the action. I can of course combine …/input/thumbrest/touch, …/input/thumbstick/touch, …/input/x/touch and …/input/y/touch to check if the thumb is not touching anything, but there is another issue as well.
…/input/thumbrest/touch is a boolean action which is only true when the thumb is completely in contact with the thumbrest. The old ovrTouch_ThumbUp seemed to be trigrgered when the thumb got a certain distance from the thumbrest. So you actually had to put the thumb pretty far up before the in game hand would do the thumb gesture.
How do I replicate this behavior with the OpenXR API?
1 Reply
- johnkearneyMeta Employee
anders.rein - this is a good catch.
With the functionality exposed in the OpenXR core spec Oculus Touch Controller it isn't possible to get exactly the thumb up from the old vrapi (or old Oculus CAPI for PC). We will have to add a Meta-specific OpenXR vendor extension to expose this information.
John
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device