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

    LR-FBA problems with custom control's mapping

    Scheduled Pinned Locked Moved Help and Support
    6 Posts 4 Posters 3.3k 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.
    • C
      ciscohellspawn
      last edited by

      Here's my retroarch.cfg config file for LR-FBA-NEXT emulator

      Code:

      Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

      input_remapping_directory = /opt/retropie/configs/fba/

      input_player1_joypad_index = 0
      input_player1_b_btn = 2
      input_player1_a_btn = 5
      input_player1_y_btn = 1
      input_player1_x_btn = 0
      input_player1_l_btn = 3
      input_player1_r_btn = 4
      input_player1_start_btn = 9
      input_player1_select_btn = 8
      input_player2_joypad_index = 1
      input_player2_b_btn = 2
      input_player2_a_btn = 5
      input_player2_y_btn = 1
      input_player2_x_btn = 0
      input_player2_l_btn = 3
      input_player2_r_btn = 4
      input_player2_start_btn = 9
      input_player2_select_btn = 8

      #Axis for RetroArch D-Pad.
      #Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number.
      input_player1_up_axis = -1
      input_player1_down_axis = +1
      input_player1_left_axis = -0
      input_player1_right_axis = +0
      input_player2_up_axis = -1
      input_player2_down_axis = +1
      input_player2_left_axis = -0
      input_player2_right_axis = +0

      #Hotkeys- Hotkeys enable you to press a combination of buttons to do such things as exit emulators, save states,
      #and load states, as well as any other functionality in an emulator. (In the example below 8 is the select key
      #and 9 is the start key so when I hold down select and press start it will exit the emulator.)
      input_enable_hotkey_btn = 8
      input_exit_emulator_btn = 9
      input_save_state_btn = 5
      input_load_state_btn = 4
      input_menu_toggle_btn = 0
      input_state_slot_increase_axis = +0
      input_state_slot_decrease_axis = -0

      #include "/opt/retropie/configs/all/retroarch.cfg"

      After I configured it, I run a rom and the controls works as mapped above but when I close the game and I run it again, control's configuration get back to the default mapping, and the retroarch.cfg file get modified.

      I'm using Retropie 3.6, Does anyone have some clue about this strange behaviour?
      thank u in advance

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @ciscohellspawn
        last edited by

        @ciscohellspawn
        Use markdown to format your posts - see http://commonmark.org/help/

        Although I think the use of RGUI on RetroPie is discouraged for the main RetroArch configs, it serves very well to solve your problem.

        1. Start a lr-fba-next game.
        2. invoke RGUI (Select+X).
        3. go to Quick Menu-> Controls.
        4. configure the buttons as you like.
        5. select Save Core Remap File
        6. Done!

        I hope it helps.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • meleuM
          meleu
          last edited by

          I've edited the wiki with these steps:

          https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration#core-input-remapping

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          1 Reply Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator
            last edited by

            lr-fba-next actually has a unique and more useful way of rebinding buttons per game in the core options. see https://github.com/RetroPie/RetroPie-Setup/wiki/lr-fba-next#button-rebinding

            however, if you want to rebind for ALL games, then the remap approach is better.

            1 Reply Last reply Reply Quote 1
            • C
              ciscohellspawn
              last edited by

              thank u all! Awesome!

              1 Reply Last reply Reply Quote 0
              • edmaul69E
                edmaul69
                last edited by edmaul69

                In the configs originally there is stuff hashtagged out at the top of the files originally. I thought i would remove that stuff and only have the stuff i needed. My files kept getting changed. I ended up redoing my cfg files keeping the hashtagged stuff in the top of the file and strangely enough retroarch stopped overwriting the files

                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.