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

    GPIO and USB controllers for 2 player

    Scheduled Pinned Locked Moved Help and Support
    joystick mappinraspberrypi 3bretropie
    5 Posts 3 Posters 2.8k 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.
    • O
      oxo
      last edited by

      Hi. Need some help please. I've built a PI3 into a dreamcast arcade stick. The arcade stick and buttons are wired straight to GPIO and I also have a USB SNES style controller also plugged into the PI. I'm running the latest Retropie. The issue I have is that the PI sees the Arcade Stick and the USB Controller as Player 1 only (both work perfectly). Can someone please point me in the direction of how to set up Retropie so it sees the arcade stick plugged into GPIO as Player 1 and the USB controller as player 2. Thanks in advance.

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @oxo
        last edited by

        @oxo Both as player1? It's a strange behavior. At least for RetroArch-based emulators (most of emulators on RetroPie) you can use this tool: https://github.com/meleu/retropie-joystick-selection

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • mercifulhackerM
          mercifulhacker
          last edited by

          I had a similar problem using the RetroBuiltGames Guide

          My problem was the the GPIO buttons were being recognized as KEYBOARD buttons. The keyboard is always player 1, and any controller I plugged in would ALSO be player 1.

          My solution was to use the mk_arcade_joystick_rpi module,m which maps the GPIO pins as a new controller, rather than as keyboard inputs.

          Let me know if that helps any!

          mercifulhackerM 1 Reply Last reply Reply Quote 1
          • mercifulhackerM
            mercifulhacker @mercifulhacker
            last edited by

            @mercifulhacker Note that this solution also makes it easier to get the hotkeys working with GPIO inputs, since it's just another controller.

            The only major limitation is that mk_arcade_joystick_rpi only allows for each GPIO controller to have 4-way joystick and 8 buttons (a,b,x,y,l,r,Start,select), so my last two GPIO buttons (R2, L2) aren't recognized by the software EVEN though they are plugged into the board.

            Seems like a silly limitation, but the mk works so well for me otherwise that I don't complain.

            1 Reply Last reply Reply Quote 0
            • O
              oxo
              last edited by

              Thanks very much for your help. You hit the nail on the head and I have the same problem. I'll try that module and report back. Much appreciated.

              1 Reply Last reply Reply Quote 0
              • 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.