Previous controller config lost when second is configured
-
I have an odd issue.
RetroPi 4.7.1 running on a new Raspberry Pi 4We have setup our system with two Reyann Easyget encoder/button driver boards with generic buttons & joysticks (one for each of the two players). On each board is connected/configured 8 buttons plus the joystick. These boards connect back to the Pi via USB.
On boot the system detects the controllers fine. We walk through the button configuration of one joystick and it works great. Go and do the same for the second and the second works great but the first no longer works (buttons are all messed up). Reconfigure the first and then the second gets messed up.
Is there some dependence between the two that prevents them from being programmed separately?
-
@edward_ci said in Previous controller config lost when second is configured:
Is there some dependence between the two that prevents them from being programmed separately?
Kind of. Controller configuration is tied to its name - configuring one of the controllers will generate a configuration that will apply to the other also. You should be able to configure just one of them and both should work.
What happens is that you're most likely wired the controller inputs differently for each player so that - for instance - Button A on P1 is producing a different input code than Button A for P2. Make sure you wire both players identically and then you should be able to have the same configuration apply correctly.
-
@mitu should we match the exact pin layout for the buttons on each board? For instance, button one for each player plugged into the top left most slot on each board OR do we mirror the positions? I believe I read somewhere that the physical connections were mirrored but that was when using a single board...
-
@edward_ci said in Previous controller config lost when second is configured:
should we match the exact pin layout for the buttons on each board?
Yes. They must be wired exactly the same.
This should be stickied. Also:
PSX and N64 roms need to be unzipped before you can use them.
And Super Metroid has a "run" button.
-
@sleve_mcdichael So, matched, NOT mirrored?
-
@edward_ci that's how I understand it, yeah. As far as the emulator is concerned, it's just another USB gamepad. If the two gamepads have identical device names/IDs, then they'll use the same config file. So whatever mapping like
button_12 = "A"
or whatever is set in the config file, will be the same for both gamepads. If "button 12" is whatever button is wired in position "6F" on the board or whatever, and you have that wired to a different physical button, then your "A" button will be that different physical button. They need to be exactly the same.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.