Forum Discussion

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

OVR Button Input isn't returning true but pressing key on keyboard for the same bool is.

        if (OVRInput.GetDown(OVRInput.Button.One) || Input.GetKeyDown(KeyCode.X))
        {
            if (isGrounded == true)
            {
                Debug.Log("Jump!");
                ovrPlayerController.Jump();
            }
        }

X works every time but if I press button One, it only works sometimes and I can't figure out why.

1 Reply

  • Solid411's avatar
    Solid411
    Honored Guest
    Well it works when I remove || and the x key altogether. Hmmm.