Forum Discussion

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

Problem with OVRGamepadController

I'm seeing a strange issue when I make the following call:
float rightAxisY = OVRGamepadController.GPC_GetAxis(OVRGamepadController.Axis.RightYAxis);

When I move the right stick up on my gamepad, it does as expected going from 0.0 to -1.0.

However, when I move the stick down, the value of rightAxisY goes from 0.0 to about 0.95, and then it all of a sudden jumps to -1.000042 when the stick is all the way down, making it seem like the stick is actually all the way up. Has anyone else seen this, and is there a solution? Am I using OVRGamepadController wrong?

1 Reply

Replies have been turned off for this discussion
  • dustums's avatar
    dustums
    Honored Guest
    To solve my issue, I just switched to using standard Input calls and don't use OVRGamepadController at all.
    float rightAxisY = Input.GetAxis ("Desktop_Right_Y_Axis");

    Does OVRGamepadController provide anything that standard Input calls doesn't?