Forum Discussion

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

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

  • 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