This repository was archived by the owner on Oct 1, 2026. It is now read-only.
Repository navigation
Joypad subsystem - #430
Merged
Merged
Joypad subsystem#430
Conversation
Tracks commit 4ae94192b2155c7aa988bfab61a148803d42d10d
rasky
reviewed
Sep 3, 2023
rasky
left a comment
Contributor
There was a problem hiding this comment.
Thanks @meeq, this is FANTASTIC work. I'm in awe at the amount of work you poured into this, and the new library is going to be so great to work with.
I've started a review from joypad.h and joypad.c, mostly around the public API. I'll do the review in parts over several days.
rasky
reviewed
Sep 8, 2023
rasky
left a comment
Contributor
There was a problem hiding this comment.
Thanks again for all your work. This is round two, still not fully done. Takes a while...
Move documentation to header DragonMinded/libdragon#430 (comment)
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Stacked on top of #429 which incorporates #426, #427, #428
Finally resolves #218
Highlights
joypad_read_n64_inputs_syncinstead ofcontroller_readAbstraction details
Supported Controllers
Nintendo 64
The standard Nintendo 64 controller has fewer (and different) inputs than a GameCube controller:
GameCube
GameCube controllers must be connected using a "passive adapter" that can be created by splicing the Joybus data pin on a GameCube controller plug into the Joybus data pin on the N64 console.
The GameCube controller has more (and different) inputs than a Nintendo 64 controller:
Compatibility compromises
Rumble
Rumble motor control is supported for both N64 and GameCube controllers with a common API.
For Nintendo 64 controllers, this requires a Rumble Pak accessory.
For GameCube controllers, the 5-volt VCC pin on the controller plug must be connected to an external power source.
Still to do
mempak.ctpak.cUnder consideration
controller.cthat is only used by thevrutestexample.execute_raw_commandand offer a proper VRU/VRS API.