Forum Discussion
sh0v0r
10 years agoProtege
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.
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
- kerskMeta EmployeeHey 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? - sh0v0rProtege
"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.
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
- 2 years ago
- 3 years ago