-
Notifications
You must be signed in to change notification settings - Fork 62
Multiple Controller Support [SYNTH-151]
#1436
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
Open
RoushilS
wants to merge
35
commits into
dev
Choose a base branch
from
roushils/151/multi-controller-support
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
4a7694c
feat: start implementing functionality for multi controller
RoushilS a21de87
fix: working version
RoushilS 4ec88c7
feat: dropdown for gamepad selection
RoushilS 20e199a
feat: logical gamepad slot assigning
RoushilS a454314
feat: add slot parameter
RoushilS 8f97243
feat: implement playerslot across subclasses
RoushilS 0e436c8
feat: sync with dropdsown
RoushilS 2671b5b
feat: use correct slot...
RoushilS 2f600b6
update keysused to be a method
RoushilS fee25b4
style:fix
RoushilS 81b5456
fix: fix test
RoushilS 421ca1a
feat: refactor controller input
RoushilS d49ebac
style:fix
RoushilS 501ee74
Update InputSystem.test.ts
RoushilS 0fee914
style:fix
RoushilS d27a733
fix: comment review
RoushilS c4883f3
style:fix
RoushilS 00d574b
Merge branch 'dev' into roushils/151/multi-controller-support
RoushilS 9432087
feat: add nametag differentiator
RoushilS 36cfd35
Merge branch 'dev' into roushils/151/multi-controller-support
RoushilS 5ef0658
fix: anyone can edit scheme bindings
RoushilS 7c996e3
format:fix
RoushilS 4268a0d
Merge branch 'dev' into roushils/151/multi-controller-support
RoushilS 32323d2
Merge branch 'dev' into roushils/151/multi-controller-support
PepperLola 970e8d8
fix: allow gpindex to be null
RoushilS 2f95a16
Merge branch 'roushils/151/multi-controller-support' of https://githu…
RoushilS e8f870b
format:fix
RoushilS f9c76c6
fix: nametag and indexing
RoushilS df8b173
fix: replace any with SynthesisBrain
RoushilS 00afa11
fix: refactor test along with new indexing system
RoushilS 14091ca
fix: re-commit
RoushilS e8201b3
Revert "fix: re-commit"
RoushilS e7a5562
fix: refactor slot system.
RoushilS 7b18b3a
chore: format
RoushilS 4d6dddc
fix: correct outdated comments
RoushilS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given how
_gpIndexesis constructed,InputSystem._gpIndexes[playerSlot]will just returnplayerSlot, meaning you can skip the lookup entirely. The?? nullis also only important ifInputSystem.gamepads[playerSlot]could return undefined and you want to guarantee the function returns null; in this case I don't think that's possible.