Skip to content

Mayflash Nintendo 64 adapter support #6079

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

Closed
JunielKatarn opened this issue Aug 18, 2022 · 6 comments
Closed

Mayflash Nintendo 64 adapter support #6079

JunielKatarn opened this issue Aug 18, 2022 · 6 comments
Milestone

Comments

@JunielKatarn
Copy link
Contributor

As of right now, the latest joystick DB does not include mappings for the Mayflower Nintendo 64 USB adapter.
https://www.mayflash.com/product/showproduct.php?id=19

It does seem to show up in https://github.com/gabomdq/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt .

Is there any reason to exclude this specific mapping, or can it be added via pull request?

See

@JunielKatarn
Copy link
Contributor Author

I've found the mappings for this adapter with the original Nintendo 64 controller:

030000008f0e00001330000000000000,Mayflash N64 controller adapter PC043,a:b1,b:b2,start:b9,leftshoulder:b6,rightshoulder:b7,guide:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftx:a0,lefty:a1,rightx:a2,righty:a3,platform:Windows,

One issue to note is, it collides with HuiJia SNES Controller.

@slouken
Copy link
Collaborator

slouken commented Aug 18, 2022

I'm working on a change for SDL 2.26.0 that will allow us to create mappings for controllers with the same VID/PID to address exactly this issue. Once that's in, we can create new mappings and create PRs for them.

@slouken slouken added this to the 2.26.0 milestone Aug 18, 2022
@slouken
Copy link
Collaborator

slouken commented Aug 24, 2022

Feel free to create a PR using the latest SDL code in main, which should create mappings for the Mayflash N64 adapter that won't collide with the HuiJia SNES controller.

I'll close this for now, since we can't accept conflicting mappings upstream.

@slouken
Copy link
Collaborator

slouken commented Aug 28, 2022

I backed out this mapping because of the collision with the HuiJia SNES Controller. We'll have to regenerate this mapping using the new controllermap program to get the correct CRC for the Mayflash PC043 adapter.

@JunielKatarn
Copy link
Contributor Author

Understood. I'm not familiar with this program.
Can you point me to building/downloading it to obtain the mapping data myself and share it?

@slouken
Copy link
Collaborator

slouken commented Aug 28, 2022

It's a test program in the SDL source archive:
https://github.com/libsdl-org/SDL/blob/main/test/controllermap.c

The exact method to build it depends on your environment, but you can build it with Visual Studio in the VisualC directory or on the command line using configure and make in the test directory.

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

No branches or pull requests

2 participants