Multiple Controller Support [SYNTH-151]#1436
Open
RoushilS wants to merge 11 commits into
Open
Conversation
fixed an error in inputsystemtest
[SYNTH-151]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
SYNTH-151
Allow multiple gamepads to each control individual robots
Symptom
Situation: User wants to simulate full FRC match (six robots) on one computer, not online multiplayer. They discover that Synthesis has a limit of one gamepad, which can only control one robot (theoretically more robots but would be poor ux). They also find that the alternative, having five robots controlled on one keyboard, is infeasible. With this new feature, a computer like a large gaming laptop to a PC with sufficient ports could allow for six controllers.
Solution
Reworked
InputandInputSystem's gamepad support to have an array of gamepads that acceptsplayerSlotss. Additionally updated all used gamepad methods to accept a playerSlot. UpdateddefaultInputsto also have a playerSlot parameter, and implemented custom scheme logic. In theEditInputInterface, add a simple dropdown for a user to customize gamepad slot, as well as syncing logic. TouchedInputSystemTestas it was throwing an error.Verification
Note
I have one gamepad to lend to testers, and can find one more, so you don't necessarily need a gamepad of your own to test.
Before merging, ensure the following criteria are met: