Controlblock button mapping keeps changing
-
Hi all,
So I have a pie4 with a newest revision controlblock and I'm running into issues with the button mapping changing itself.
Ex.
Player 1 will work perfectly fine but player 2 will read left as button 5 and button 5 as left. Then on next reboot without changing any wiring player 2 will work perfectly but player 1 will have left and button 5 swapped. I havnt run into issues with any of the other buttons it's just button 5 and left joystick on player 1 and 2 keep swapping randomly. -
We've had this kind of issues when there are 2 identical controllers (same model), but they're wired differently. Since they're identical, they share the same configuration, so configuring one will also configure the other, overwriting the first configuration.
Can you test with
jstest /dev/input/js0
andjstest /dev/input/js1
and see if the gamepad buttons behave similarly ? Button X on P1 should produce the same code as Button X on P2, left on P1 should produce the same code as left on P2, etc. -
@mitu
I just got a chance to test this today. I have triple confirmed that all the wires are connected exactly the same. But when I push button 5 on player 2 I get left joystick player 2 and I when I push left it shows up as button 5. Player 1 showed up correctly. -
@sincion What controller type have you connected?
Do you have other peripherals connected to the RPi? -
@sIncION have re solved? I've the same problem
-
@Sabaro my problem.... I set the cable wrong
1 2 3 4. 4321.
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.