Xbox 360 left and right triggers mixed up with multiple controllers
All my controllers are set up correctly in the input manager. (Also with joystick x button x)
The controller index gets assigned correctly when spawning a player, but for some reason when multiple controllers are plugged in, the triggers on the back of the xbox controllers get called on the wrong controller.
I know it works, because playing with 1 controller has the correct behaviour and playing with 2 controllers works when you plug the second one in later. All the other buttons work like they should.
What's up? I've seen forum posts saying the exact same thing, but they are all unanswered. Is this just another incredibly crucial unity bug that hasn't been fixed for a thousand years?
I encountered this today in 2018.2.16f1: the right triggers (10th Axis) on two pads were swapped after changing out player 2's pad i.e. player 1's right trigger registered under player 2... After a restart everything was fine again.
I can't explain it or repo it, but the code that reads the input is trivial and simply prefixes the desired input name with the player number, and all other inputs were working fine at the time.
I went ahead and just converted to x-input. The built-in way simply can't be trusted and I don't understand how this is yet another oversight without any solutions.
Everyone works like it should now.
Your answer
Follow this Question
Related Questions
UNITY no longer detecting XBOX360 controller input,XBOX 360 controller no longer working with UNITY 0 Answers
Input Manager 2 Players with 2 Controllers using buttons 0 Answers
Axis moves player right but not left 1 Answer
Mac xbox controller triggers 1 Answer
X box controller DPad on Windows? 0 Answers