Forum Discussion

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

OVRInput.GetDown for Vive touchpad "touch"

Environment: Unity v2017.4.21f1, Oculus Utilities v1.35.0, OVRPlugin v1.35.0

I am testing out the cross-platform functionality of OVRInput as explained here: https://developer.oculus.com/documentation/unity/latest/concepts/unity-cross-platform-dev/

Is it possible to detect when a user "touches" the Vive touchpad using OVRInput?

The documentation states "Axis2D.PrimaryThumbstick maps to the capacitive ‘Trackpad’, #2" but the only way to use this seems to be OVRInput.Get(Axis2D.PrimaryThumbstick) which returns a Vector2 for _where_ they are touching, rather than if they are touching at all. Ideally I'd like a GetDown and GetUp for "touches" not just presses.




2 Replies

Replies have been turned off for this discussion
  • I havnt tried this myself, but maybe you can just do a vector2.magnitude >0 check to return a bool value?
  • We can fallback to this if necessary. I haven't yet stress tested if this gives any false negatives.