GetKeyDown(JoystickButton0)==false while GetKeyDown(Joystick2Button0)==true

Heho,

I was just wondering why my joystick (XBox 360 controlller) was not sending any button input anymore even though I did not Change ANY code and to my great wonderment (does that word exist?) I found that GetKeyDown(JoystickButton0) was not sending true, while Joystick2Button0 was.
As I understand it, JoystickButton0 should be true if button 0 on ANY joystick is down?

I did not yet check if any other platforms are affected, I have that problem on my Win 8.1 RT device with an 8.0 build.

Best,

Thomas

Oh, it was Joystick1Button0, not Joystick2. Still, same problem

Which version of Unity are you using?
This bug should be fixed, I don’t remember in which version (perhaps not even released yet).

Heho, I’m on 4.3.3f

Nope, unfortunately this fix was not yet released to public, so the workaround is to check all joysticks yourself.

I’m just through with the changes ;D Not nice, not pleasant, but working…
Fortunately I stumbled over it just in time, I’m submitting today. :slight_smile: