RetroPie 4.4 Not Detecting GPIO Button and Joystick
-
Hi! I am trying to use a custom GPIO joystick and button for an arcade-style RetroPie build. Under RetroPie 4.3, the controller-mapping dialog would detect the GPIO button and joystick when the button was pressed. However, under 4.4, the controller mapping dialog does not detect any GPIO input. The controller mapping dialog does detect USB and keyboard controllers. I believe that the mkarcadejoystick and gamecon driver packages are installed (I reinstalled them for 4.4). Is RetroPie 4.4 compatible with GPIO joysticks and buttons, or is this something that is still being worked on? Is there currently any fix or workaround for this? Thanks in advance for your help!
Pi Model or other hardware: Raspberry PI 3B
Power Supply used: Standard Adafruit
RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest): 4.4
Built From: Pre-made SD Image on RetroPie website (4.4, Raspbian Stretch)
USB Devices connected: USB Controller, Keyboard, Mouse
Controller used: GPIO button and joystick, USB controller, Keyboard -
@az What do you mean you're using the mkarcadejoystick and gamecon driver? They have different gpio schematics, don't they? If so, you're suppose to use one or the other. I only use the gamecon driver with my snes pads connected to snes ports wired to gpio. That works fine in 4.4.
-
Thanks @Darksavior for the tip about the gpio schematics! I now have an joystick and button working for one player with mkarcadejoystick (we are using an arcade joystick and not a gamepad). Does anyone know if this would work with 2 players? I'm using a Pi3 rev B.
-
@az said in RetroPie 4.4 Not Detecting GPIO Button and Joystick:
Does anyone know if this would work with 2 players?
What does "this" mean here?
-
@zerojay I was referring to mkarcadejoystick. (Sorry I was unclear.) Mkarcadejoystick claims that it is compatible with 2 players, but the controller mapping dialog is not detecting the second joystick.
-
If you installed mkarcadejoystick from the retropie-Setup menu, it will set the options to 1 controller.
To change this at a command prompt run
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
and change the first line fromoptions mk_arcade_joystick_rpi map=1
to
options mk_arcade_joystick_rpi map=1,2
this assumes that you are using the standard mk_arcade_joystick wiring:
-
Thanks @simonster for helping me locate the configuration file I needed. I ended up running the following command to edit the file (it had a slightly different name on my system for some reason):
sudo nano /etc/modprobe.d/mk_arcade_joystick_rpi.conf
I believe this solves my problem. Thank you to everyone for helping.
-
@az sorry, that was my fault, I was typing on my phone. Glad you got it sorted.
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.