-
Notifications
You must be signed in to change notification settings - Fork 6
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
Some buttons not mapped correctly #3
Comments
The XOTICPC GX7 gamepad has A swapped with B and X swapped with Y compared to a snes controller. |
Your underlying bug at |
In #3, a user of the template reported confusion between reading the controller's entire report as a 16-bit unit and reading only the high byte as an 8-bit unit. To make this confusion less likely going forward, add a set of labels and constants for reading the high byte for convenience in porting NES code.
Test results on an 8bitdo: (from before you committed d8770ad)
|
That's more like it. All 8 bits in the high byte (which correspond to the buttons of the NES controller) are causing the expected. Is there a remaining problem? |
I think some of the KEY_ constants are not mapped correctly. I added a .proc to wait until all controller buttons are unpressed in this repo:
https://github.com/jeffythedragonslayer/lorom-template-with-waitpadup
Here is the control flow when holding down, and then releasing each of the buttons.
Tested on Mesen-SX with an XOTICPC GX7 gamepad. Also, I suggest renaming these constants to BUTTON_
The text was updated successfully, but these errors were encountered: