-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Controller recognition Intermittently fails with Retro-Bit controllers #363
Comments
I wrote a minimal test rom to check what was happening https://github.com/jerellsworth/joytest. After initializing, the port that the controller is in registers as PORT_TYPE_UNKNOWN and the joypad as JOY_TYPE_UNKNOWN. |
I see two potential culprits:
Semi-related to this problem, I ran into some issues with this type of aftermarket controller in SGDK projects, IIRC also Mortal Kombat 3 as well, where any time you press MODE it'll activate the controllers 3pad compatibility mode, instead of only doing that when the console boots up or when it's being plugged in. This prevents it from acting as a button when it needs to, and also risks accidentally pushing the MODE button when holding the controller tightly and disabling the extra buttons. To fix that, you have to unplug the controller because the controller itself was set to 3pad mode, not the software. |
@RealMalachi Thanks for taking a look at this! |
I've done some test on my aftermarket controller. As I thought, it's directly correlated to reading the last TH low nybble, which seems to "reset" the controller in a way, allowing any press of the MODE button to act as if it was the first. |
I'm still doing research on this, but I wanted to go ahead and start an issue in case there's any previous work on it (I couldn't find any other mentions on the internet).
I've found that, in some situations, no button inputs from Retro-Bit 6-button controllers are detected. Sometimes power cycling the MD fixes it, but usually not. I presume that something about these controllers is out-of-spec in a way that
JOY_init
, in particular, is vulnerable to.What I've found:
You might assert that these controllers aren't supported, which is fair enough, but they are extremely common and prominent on Amazon so it would be nice if they worked.
I'll post more as a do further research. Let me know what I can do to help. I appreciate all the work y'all do on this project.
The text was updated successfully, but these errors were encountered: