-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple controllers and cross-platform issue #23
Comments
My advice is to not use the Input Adapter at all, it's obsolete. Initially it was meant to solve the following issues:
For point 1 it's much better to have a menu in your game where each player can rebind their buttons. Configure the game for the Windows XBox 360 drivers and let users on Mac and Linux rebind the buttons and axes. The added bonus with this solution is that the player can use any gamepad they want not just the XBox 360 one. For point 2 you now have the Analog Button axis type which can convert any stick/trigger to button input. If you don't want to allow the players to rebind the buttons you can also do it this way:
|
Thank you very much for all these information ! I had the same kind of idea than you : declaring all the configurations possible for each player/platform and assigning the appropriate ones to the input manager based on the current platform. Thank you again. |
This is a non-critical question. Mostly for curiosity.
This is my configuration :
My final purpose : make the game work with 4 controllers on Windows, Linux and Mac. Right now, the game works fine on Windows. It may also work correctly on other platforms with only one controller : the one defined in the Input Adapter. But I guess that the 3 other controllers are not gonna work.
At first I thought that I could use 4 input Adapters, each one assigned to a specific player, but it's a singleton.
So I'm quite stuck here.
The text was updated successfully, but these errors were encountered: