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

    Remapping buttons for runcommand.sh

    Scheduled Pinned Locked Moved Help and Support
    runcommand.shcontroller help
    2 Posts 2 Posters 543 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.
    • E
      ericsnis
      last edited by

      Is there a way to remap the buttons used for runcommand without messing up the mapping for games?

      I bought a Microcenter/Atari Ultimate dual arcade fight stick with the RPI 3 and a bunch of old Atari roms. The RetroPie image was rather old, so I copied the roms over to a fresh copy of Retropie 4.7.1. I also copied over es_input.cfg to the ~/.emulationstation folder.

      I ran into a problem with runcommand, I get trapped in the menu unless I have a keyboard plugged in to push enter. I can get into the runcommand menu by pressing left on the player 1 joystick which is weird. The joystick does navigate up and down as expected, I just can't do anything besides move up and down. In EmulationStation navigation works fine.

      The controller it comes with is a Xin-Mo USB 2 player adapter. I did add the string needed for two players to /boot/cmdline.txt as described in Xin-Mo - RetroPie Docs

      I ran jstest /dev/input/js0 which gives me this.
      Microcenter Arcade Stick (Xin-Mo)

      es_input.cfg

      <?xml version="1.0"?>
      <inputList>
              <inputConfig type="joystick" deviceName="xin-mo.com Xinmotek Controller" deviceGUID="03000000c0160000e105000010$
                      <input name="a" type="button" id="1" value="1" />
                      <input name="b" type="button" id="2" value="1" />
                      <input name="down" type="axis" id="1" value="1" />
                      <input name="hotkeyenable" type="button" id="9" value="1" />
                      <input name="left" type="axis" id="0" value="-1" />
                      <input name="leftshoulder" type="button" id="3" value="1" />
                      <input name="right" type="axis" id="0" value="1" />
                      <input name="rightshoulder" type="button" id="4" value="1" />
                      <input name="select" type="button" id="9" value="1" />
                      <input name="start" type="button" id="8" value="1" />
                      <input name="up" type="axis" id="1" value="-1" />
                      <input name="x" type="button" id="5" value="1" />
                      <input name="y" type="button" id="0" value="1" />
              </inputConfig>
      </inputList>
      

      Pi Model: 3B+
      Power Supply used: Generic 3x 2.4A USB + 3Amp USC-C, 10A total
      RetroPie Version: 4.7.1
      Built From: SD Image on RetroPie website
      USB Devices connected: USB Keyboard as needed, Xin-Mo USB adapter
      Controller used: Xin-Mo two player

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        @ericsnis said in Remapping buttons for runcommand.sh:

        Is there a way to remap the buttons used for runcommand without messing up the mapping for games?

        runcommand will use the RetroArch configuration file of the gamepad. If you didn't generate one - it's automatically done when you configure the input in EmulationStation - it doesn't which buttons are A/B to enable them in the launch menu.
        Since you copied the ES configuration for input, and didn't run the input mapping dialogue, the RetroArch configuration file hasn't been generated - hence the missing mapping in the launch menu of Runcommand.

        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.