Forum Discussion

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

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.

2 Replies

Replies have been turned off for this discussion
  • kersk's avatar
    kersk
    Meta Employee
    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?
  • "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.