Hello, I’m trying to make a fighting game, but when I plug in multiple USB gamepads to my computer, Unity takes the input for both instead of just one of them. How can I make it only the button checking for a specific command only check 1 gamepad?
Hi, I’m fairly new as well… but I’m pretty sure I know how to solve your problem.
Firstly open up your input manager in Unity3D.
Edit>Project Settings>Input.
Then find your keys, go to the bottom of each list (Joy Num) and instead of “Get Motion from all Joys”; select Joystick 1.
Thanks for the reply but that doesn’t work.
When it is about a button it remains the same as before.
When it is about a stick axis, then no controller can affect it.
The only thing I can think of is duplicating the Keys in your Input Manager.
And using Joystick 1 for all, and then the duplicating Joystick 2 for all.
I use an Xbox 360 controller (only one) so I don’t know much about this, sorry I couldn’t be of anymore help.
Hope you find your solution.
I did find this, however old it may be lol.
I solved the problem:
The key is that in the input inspector not say “joystick button 1” but to specify “joystick 1 button 1”
Hey that is awesome! Great job.