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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #98791
    mike4001
    Participant

    Hi,

    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
    all/retroarch.cfg

    Am I doing something wrong ?

    #98797
    Floob
    Member

    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
    /opt/retropie/configs/{systemname}/retroarch.cfg
    – Which pulls in this file at the point of the #include line
    /opt/retropie/configs/all/retroarch.cfg
    – That file, in turn applies the auto detected controller file from
    /opt/retropie/emulators/retroarch/configs/{yourcontoller}.cfg

    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.

    #98800
    mike4001
    Participant

    OK, thank you.

    I think I understand now :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.