Forum Discussion

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

Touch controller inputs are not being detected in Unity

Inputs from my left and right touch controllers are not detected in Unity and only the hand presence, position and rotation are being detected. This would appear to only happen in Unity as in the demo games from the Oculus App (such as "First Contact" or "Google Earth VR") the button presses are detected. 

In a new project, I attached the following script to my touch controllers but the debug messages were not printed:
void Update () {
        if (OVRInput.Get(OVRInput.RawButton.A))
        {
            Debug.Log("A pressed");
        }

        if (OVRInput.Get(OVRInput.RawButton.RIndexTrigger))
        {
            Debug.Log("Triggered pressed");
        }
}

I am using:
- Unity 2018.1.6f1
- Oculus Utilities v1.25.1
- OVRPlugin v1.25.0
- SDK v1.27.0

I only have OVRCameraRig (with OVRManager enabled) and LocalAvatar in the scene.

3 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Thank you! This workaround fixes the problem. 
  • Uhhh, I am not seeing an answer to this question. Do you mind sharing what you did to fix this?
  • it's 2020 and this problem is still occurring... it's so annoying, I have to restart my pc and my oculus device, and then, sometimes, and only SOMETIMES, will the controllers work.... please solve this problem!