Reworked code for more universal nintendo-input, added functionality#44
Open
arminth wants to merge 2 commits intoharbaum:mainfrom
Open
Reworked code for more universal nintendo-input, added functionality#44arminth wants to merge 2 commits intoharbaum:mainfrom
arminth wants to merge 2 commits intoharbaum:mainfrom
Conversation
This commit changes the following: 1. replace Nunchuk.h with Nintendo.h 2. add Classic Controller with D-pad, a-button=FIRE, -button(select) = COIN,+button (start) = START, home-button=reset_emulation 3. enhance Nunchuk capabilities: Z-button= FIRE, C-button=COIN, Z and C together=START, Joystick DOWN+Z+C=reset_emulation I know this pretty much reverts D0023R's last pullrequest but IMHO it makes things more flexible and more better! ;) Next step I will work on is autodetection of Nintendo-controller.
…ion for classic controller 1. If you enable NINTENDO_INPUT in config.h, on bootup of the machine, the controller is detected automagically. Currently supported: Nunchuk and Classic controller (don't see any value in having guitar- or drumcontrollerbut they are in the code already with no function behind. So you might get creative! 2. Added #define CLASSIC_DPAD and CLASSIC_LJOY You can use either of them or both on the Classic controller. You have to define at least one. If not, you will receive a compiler error message when building
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.
This commit changes the following:
I know this pretty much reverts D0023R's last pullrequest but IMHO it makes things more flexible and more better! ;) Next step I will work on is autodetection of Nintendo-controller.