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

    Controller Config for Arcade Cab

    Scheduled Pinned Locked Moved Help and Support
    controller confmame-libretrocoin button
    2 Posts 2 Posters 560 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.
    • B
      Bluescreen2001
      last edited by

      Hi

      I have built a one player cabinet with six action buttons and three function buttons named start, stop, coin. These buttons are wired to a gamepad USB controller.
      I play MAME games mainly. So I would like to have the following functions:

      When in Emulation station menu:
      Start button = launch game which is normally the gamepad key A
      Stop button = back which is normally B
      Coin button = Menu

      When in Mame:
      Start button = player 1 start
      Stop button = Quit game
      Coin button = Insert Coin
      Action buttons 1..6 = Action 1..6 (depending on game)

      The problem is now, if I configure the buttons as described above for Emulationstation I loose the action buttons for A and B for the game. Also I don't understand which "Emupad" key is mapped to which real button.

      Can you give me some hints.

      B 1 Reply Last reply Reply Quote 0
      • B
        BJRetro @Bluescreen2001
        last edited by

        @Bluescreen2001 this can be done. I did it but it was many months ago now so I am somewhat rusty.

        First to back into the way you normally configure a controller in retropie (like when you boot up the first time) and reconfigure your controller to how you want it to operate in-game.

        Second, go to the command line, and use the js_test utility to figure out what button numbers your raspberry thinks your buttons are: type into the command line jstest /dev/input/js0

        Then press your buttons and it should tell you which button number is assigned because when you it the button the appropriate number will say “on.” Write down a reference for yourself.

        Third, exit the jstest by pressing CTRL + C on your keyboard. Now you are going to edit the emulation station input config file to make new controls for navigating the emulation station menus. At the command line type sudo nano ~/.emulationstation/es_input.cfg that will allow you to change which buttons do what in the emulation station menus by using the button numbers you found and recorded in jstest. You will make button “a” the number button that you found was your start key, you will make button “b” the number button you found was your “stop” key and you will make the “start” button (which usually brings up the menu) the number button you found was your “coin” key. For the sake of still having use of the other buttons In concept you may want to then assign the “select” key to some other button since it will likely be assigned by default to your “coin” button. After you make your changes save the file and go back to emulation station by typing emulationstation in the command line and see if it works.

        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.