Skip to main content
Up and Coming
April 4, 2019

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.




    This topic has been closed for replies.

    2 replies

    Inspiring
    April 5, 2019
    I havnt tried this myself, but maybe you can just do a vector2.magnitude >0 check to return a bool value?
    Up and Coming
    April 8, 2019
    We can fallback to this if necessary. I haven't yet stress tested if this gives any false negatives.