Forum Discussion
appminis
9 years agoExplorer
OVRInput.Touch isn't working
Hi, Is there something wrong with this code for using the touch sensitive buttons? if (OVRInput.Get(OVRInput.Touch.SecondaryIndexTrigger)) { Debug.Log("Right Han...
kersk
9 years agoMeta Employee
Hmm, that code snippet is correct and works for me.
Can you share your version of Unity, Oculus Utilities, OVRPlugin, and SDK? (Those get logged out when entering play mode w/ the Utils)
Is it only the Touch sensitive inputs that are not working? What about OVRInput.Button.SecondaryIndexTrigger or OVRInput.Button.One? Can you log OVRInput.GetActiveController() and OVRInput.GetConnectedControllers() to verify they match expectations. And you do have an instance of OVRManager.cs in the scene? That's needed for the input state to update correctly.
Can you share your version of Unity, Oculus Utilities, OVRPlugin, and SDK? (Those get logged out when entering play mode w/ the Utils)
Is it only the Touch sensitive inputs that are not working? What about OVRInput.Button.SecondaryIndexTrigger or OVRInput.Button.One? Can you log OVRInput.GetActiveController() and OVRInput.GetConnectedControllers() to verify they match expectations. And you do have an instance of OVRManager.cs in the scene? That's needed for the input state to update correctly.
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
- 27 days ago
- 5 years ago
- 1 year ago