- Home /
How to map multiple controllers
I have a single (X360 on a PC) controller working just fine, but my game is multiplayer and any/all all attached controllers are active. I want to have a separate controller for each player. I believe I have this working, but the way I have the input manager set up seems to be inefficient:
As you can see, I am creating a new axis for each axis on each controller. This appears to be working, but having 60ish axes set up (15ish per controller) seems to be inefficient. Is there a better way to do this, or should I just get copy-and-pasting?
Answer by idbrii · Apr 07, 2015 at 07:02 AM
I think what you're doing is the only way to setup multiple joysticks with Unity's InputManager. You also have to tune the gravity/deadzone/etc values separately for each gamepad : (
There are both free and paid alternatives to unity's input manager that might make this easier.
Your answer
Follow this Question
Related Questions
Android multiple gamepad/controller/joystick support? 1 Answer
C# Multiple constructors 2 Answers
Getting more than one GUI window to display 0 Answers
Use multiple NavMesh ? -1 Answers
One scene, many levels?? 2 Answers