How do custom button config for NES

Home Forums RetroPie Project Everything else related to the RetroPie Project How do custom button config for NES

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of bennett1838 bennett1838 2 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #89263
    Profile photo of bennett1838
    bennett1838
    Participant

    I’m using a PS3 controller and it is working just fine. However, I would like to switch 2 buttons only when running the NES emulator.

    What is the best way to get this done?

    Thanks

    #89265
    Profile photo of brainfrz
    brainfrz
    Participant

    You should be able to add the gamepad button mapping to /opt/retropie/configs/nes/retroarch.cfg

    That should override the configs made in the /opt/retropie/configs/all/retroarch.cfg but i’m experimenting with that myself, so your mileage may vary.

    #89423
    Profile photo of bennett1838
    bennett1838
    Participant

    I added the following lines to the retroarch.cfg file in /nes

    input_b_btn = “15”
    input_a_btn = “14”

    That didn’t get it.

    #89424
    Profile photo of brainfrz
    brainfrz
    Participant

    I couldn’t check it, but i believe it should be:
    input_player1_b_btn = “15”
    input_player1_a_btn = “14”

    Also you could try
    input_player1_b_btn = 15
    input_player1_a_btn = 14

    I’ve seen it used both with and without quotes.

    #89425
    Profile photo of bennett1838
    bennett1838
    Participant

    That was it. Thanks

    I copied the lines from the controller config, and forgot to add the player1 stuff

Viewing 5 posts - 1 through 5 (of 5 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar