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

    Configure multiple buttons to the same action

    Scheduled Pinned Locked Moved Help and Support
    controller setuconfigure butto
    2 Posts 2 Posters 1.6k 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.
    • D
      dowobeha
      last edited by

      Hi, I'm new here, so if this isn't the right place to post this question, please let me know where I should post this.

      I just got RetroPie set up for NES. My controllers have a lot more buttons than the original NES controller did. For ergonomic reasons, I would like to use some of these extra buttons.

      For example, I would like the left trigger button and the B button to both be mapped to the "NES B button" action. Similarly, my controller has a D-pad, a left analog stick, and a right analog stick. I would like all three of these to act as movement controllers when in the NES emulator.

      Looking at the config file, I don't see any way of specifying that one action should be triggered via more than one button.

      Any help would be greatly appreciated.

      Thanks,
      Lane

      mediamogulM 1 Reply Last reply Reply Quote 0
      • mediamogulM
        mediamogul Global Moderator @dowobeha
        last edited by mediamogul

        @dowobeha

        my controller has a D-pad, a left analog stick, and a right analog stick. I would like all three of these to act as movement controllers when in the NES emulator.

        You can mirror the DPad the the left or right joystick for the NES specifically by adding:

        input_player1_analog_dpad_mode = "1"
        

        for the left stick, or:

        input_player1_analog_dpad_mode = "2"
        

        for the right stick to /opt/retropie/configs/nes/retroarch.cfg. To mirror the DPad to both sticks at the same time, as well as your other requests, you'd need to employ an external mapping solution such as Linux Joystick Mapper or xboxdrv.

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        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.