Skip to content

Support input from all controller channels.#53

Open
yo1dog wants to merge 1 commit intosuloku:masterfrom
yo1dog:master
Open

Support input from all controller channels.#53
yo1dog wants to merge 1 commit intosuloku:masterfrom
yo1dog:master

Conversation

@yo1dog
Copy link
Copy Markdown

@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