Forum Discussion
hyperion337
6 years agoExplorer
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
- MikeFTrusteeI havnt tried this myself, but maybe you can just do a vector2.magnitude >0 check to return a bool value?
- hyperion337ExplorerWe can fallback to this if necessary. I haven't yet stress tested if this gives any false negatives.
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
- 9 years ago