Controller problem

KuraiKurai Posts: 14Member
Hi there.
I know, that's a newbie question, but I've searched the forum and now I'm more confused than ever.
The question is fairly simple. How do I read gamepad input on Ouya?

I made my demo game, built it and then I ran it on Ouya. But it doesn't get any input from the gamepad.

These are my Input panel settings:
image

And I call the buttons on my player script like this:

if (Input.GetButtonDown(fireButton)) InvokeRepeating("Shoot", .001, fireRate); 

By passing to the fireButton variable the string "Joystick1Button4".

But nothing works.

I'm puzzled because I cannot understand if I have to write a different code in order to read OUYA controllers (but reading the forum it seemed to me that the custom code is legacy now and that I can use the standard unity input API). Can you help me a bit?

Thank you!
image
Federico Fasce
Creative Director


Comments

Sign In or Register to comment.