Skip to main content
sh0v0r
Up and Coming
January 28, 2016

OVRInput.GetDown(OVRInput.Button.One) always returns true

I am trying to use the OVRInput class to get XBOne controller buttons.

If I debug the return value of OVRInput.GetDown(OVRInput.Button.One)
It starts off as 'False' but as soon as I press (A) and release the button it returns 'True' every frame after that as if the button is held on.
    This topic has been closed for replies.

    2 replies

    Meta Employee
    January 28, 2016
    Hey sh0v0r,

    I can't repro this behavior with the following code:


    void Update()
    {
    if (OVRInput.GetDown(OVRInput.Button.One))
    Debug.Log("Button.One Pressed");
    }

    That's working correctly for me with an XBOne controller, even with trying various script execution orders, etc.

    You're running this on Windows, right? To help narrow this down, do you have another controller or PC to test with?
    sh0v0r
    sh0v0rAuthor
    Up and Coming
    January 28, 2016
    "kersk" wrote:
    Hey sh0v0r,

    I can't repro this:


    Try this....



    void Update ()
    {
    Debug.Log (OVRInput.GetDown(OVRInput.Button.One));
    }



    Im on win8, standard xbone controller and driver.

    Controller is functioning correctly in other apps. Infact I replaced the OVRInput call with Input.GetButtonDown ("Submit"); which works as expected.