Skip to content
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

Support input from all controller channels. #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yo1dog
Copy link

@yo1dog yo1dog commented Jul 6, 2022

Adds listening to input from all controller channels instead of just 0. This restores functionality for those w/o a functioning P1 controller port.

Many lines touched but functionally a small change. The meat is in input.c. The rest is simply replacing PAD_ButtonsHeld(0) and PAD_ButtonsDown(0) with padsButtonsHeld() and padsButtonsDown().

Implementation is straightforward for buttons: bitwise-or the button states of all controllers.

Tested on my personal DOL-101. Works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant