sm64pc / sm64ex

Fork of https://github.com/sm64-port/sm64-port with additional features.
1.59k stars 489 forks source link

Generic N64 Controller Support issue #317

Open adamwiz2 opened 4 years ago

adamwiz2 commented 4 years ago

Hello Team -

When trying to play Super Mario 64 PC, I am attempting to use a Generic N64 Contoller. I have attempted to Map the controller using the appropriate buttons, however when I attempt to map the A button and Z button, they are not able to be mapped. Also I mapped all the C keys properly but the map does not seem to be applying. When in-game, the A button is mapped to the Z button and the Z button is mapped to R button, as well as the R button being mapped as the R button. When I attempt to map the Z button as any button, it does not get recognized and when attempting to map the A button, I experience the same issue. The joystick is working properly as well as the other buttons, they are just not mapping properly.

When checking the controller button map in Windows, all the buttons appear to be separate and working properly. Also worth mentioning is the fact that I am able to use the controller with all the buttons with any other game or emulator with no issues.

I appreciate your help on this issue and look forward to getting a response!

Thanks in advance,

adamwiz2

TMartinPPC commented 4 years ago

I've been facing the same issue with my RetroLink N64 USB controller. Would love to figure out how to map it properly.

BopItFreak commented 4 years ago

I have the same issue, except the A button is applied to C down and Z is applied to the A button.

DanTheMan827 commented 4 years ago

This also happens with the Switch Pro Controller on Linux.

I've added the mapping line into gamecontrollerdb.txt and it does see and load it, but the mappings still aren't correct and not all buttons can even be bound, is the SDL2 binding code correct in that respect?

fgsfdsfgs commented 4 years ago

There's not much that can be done about that from the game side, it just checks the SDL2 gamecontroller buttons. Maybe check the gamecontrollerdb bindings and see if they're correct?