RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    RetroPie 4.4 Not Detecting GPIO Button and Joystick

    Scheduled Pinned Locked Moved Help and Support
    gpiocontrollersinput4.4raspberry pi 3b
    8 Posts 4 Posters 5.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      az
      last edited by

      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

      DarksaviorD 1 Reply Last reply Reply Quote 0
      • DarksaviorD
        Darksavior @az
        last edited by Darksavior

        @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.

        1 Reply Last reply Reply Quote 1
        • A
          az
          last edited by

          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.

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zerojay @az
            last edited by

            @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?

            A 1 Reply Last reply Reply Quote 0
            • A
              az @zerojay
              last edited by az

              @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.

              1 Reply Last reply Reply Quote 0
              • simonsterS
                simonster
                last edited by simonster

                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 from

                options 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:
                0_1524867057907_7ab7694a-f622-4ba4-b380-4f0088c73f75-image.png

                1 Reply Last reply Reply Quote 1
                • A
                  az
                  last edited by az

                  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.

                  simonsterS 1 Reply Last reply Reply Quote 0
                  • simonsterS
                    simonster @az
                    last edited by

                    @az sorry, that was my fault, I was typing on my phone. Glad you got it sorted.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post

                    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.