Emulator specific button remapping is overwritten by all/retroarch.cfg

Home Forums RetroPie Project Everything else related to the RetroPie Project Emulator specific button remapping is overwritten by all/retroarch.cfg

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of mike4001 mike4001 2 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #98791
    Profile photo of mike4001


    I hope I am doing this correctly

    1) First I created a controller profile with the retropie setup script
    2) I edited the /opt/retropie/configs/all/retroarch.cfg and added at the buttom

    input_player1_joypad_index = "0"
    input_player1_b_btn = "2"
    input_player1_y_btn = "3"
    input_player1_select_btn = "8"
    input_player1_start_btn = "9"
    input_player1_up_axis = "-1"
    input_player1_down_axis = "+1"
    input_player1_left_axis = "-0"
    input_player1_right_axis = "+0"
    input_player1_a_btn = "1"
    input_player1_x_btn = "0"
    input_player1_l_btn = "4"
    input_player1_r_btn = "6"
    input_enable_hotkey_btn = "8"
    input_exit_emulator_btn = "9"
    input_menu_toggle_btn = "1"
    input_load_state_btn = "0"
    input_save_state_btn = "3"

    As I want to change the button layout for the Gameboy (but it´s the same with other libretto emulators)

    I go to /opt/retropie/configs/gb/retroarch.cfg and add

    input_player1_b_btn = "3"
    input_player1_y_btn = "1"
    input_player1_a_btn = "2"
    input_player1_x_btn = "0"

    at the buttom.

    And these changes do not apply in the gameboy emulator. I have to comment out the a, b, x, y buttons in the all/retroarch.cfg file in order that it recognizes the gameboy specific changes.

    It seems that it loads gb/retroarch.cfg first but is then overwritten again by the

    Am I doing something wrong ?

    Profile photo of Floob

    Thats not quite right, and as punishment you should watch this:

    But in summary, the setup in RetroPie3 is (in terms of retroarch)
    – First reads this file
    – Which pulls in this file at the point of the #include line
    – That file, in turn applies the auto detected controller file from

    So in terms of controller settings, just edit what you want in the auto controller file. Then put your overrides as you have done in the system specific location.

    A good rule of thumb, is to never alter the /all/retroarch.cfg unless you know you always want the rules in there to always apply, regardless of system or controller used. To be honest I hardly edit that file at all.

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    Profile photo of mike4001

    OK, thank you.

    I think I understand now 🙂

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

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

Skip to toolbar