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

Reworked code for more universal nintendo-input, added functionality #44

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arminth
Copy link

@arminth arminth commented Feb 14, 2024

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.

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
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