Forum Discussion
Solid411
6 years agoHonored Guest
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.
X works every time but if I press button One, it only works sometimes and I can't figure out why.
1 Reply
- Solid411Honored GuestWell it works when I remove || and the x key altogether. Hmmm.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago