Skip to main content
New Participant
October 17, 2017

OVRInput.GetUp not working correctly in Unity 2017.2 with GearVR Controller

So, I seem to have encountered an issue in Unity 2017.2 with Oculus Utilities v 1.18.1. Calling OVRInput.GetUp(OVRInput.Button.PrimaryIndexTrigger) does not return true when releasing the trigger on a GearVR Controller. I wrote the following code to test this:
void Update () {
  if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger))
        {
            r1.material.color = Color.red;
        }
        if (OVRInput.GetUp(OVRInput.Button.PrimaryIndexTrigger))
        {
            r1.material.color = Color.white;
        }
        if (OVRInput.GetDown(OVRInput.Button.PrimaryTouchpad))
        {
            r2.material.color = Color.red;
        }
        if (OVRInput.GetUp(OVRInput.Button.PrimaryTouchpad))
        {
            r2.material.color = Color.white;
        }
        if (OVRInput.GetDown(OVRInput.Button.Back))
        {
            r3.material.color = Color.red;
        }
        if (OVRInput.GetUp(OVRInput.Button.Back))
        {
            r3.material.color = Color.white;
        }
    }
The Primary Touchpad and Back button work appropriately when the GetUp and GetDown functions are called, and GetDown works with the Trigger, but GetUp is just not working. I tried this same code in 2017.1 and it works fine.
This topic has been closed for replies.

23 replies

Participant
September 11, 2018
To anyone looking into this, the issue seems fixed with oculus utilities 1.28
Participant
November 12, 2018
Team
I have the same issue, OVRInput.get works, but getdown getup not.
My version as
Current version: 1.30.0
Bundled version : 1.29.0
My app is running on Windows,  and my Unity version as 2018.2.14f1

Can i confirm if someone have the issue fixed?
Participant
January 24, 2019
Hello I am using the latest Oculus integration and OVRInput.Button.Back on the Oculus Go works very randomly. Any tips?