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 controller config



  • Hi all,

    My joystick controllers are set up like the following;

    B X Y
    A L R

    After running jstest, I have learned that this translates as;

    1 2 3
    0 4 5

    This is the same for both player 1 and player 2 controls.

    Therefore, I amended the retroarch.cfg file located in \RETROPIE\configs\fba to the following;

    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 = 1
    input_player1_a_btn = 0
    input_player1_y_btn = 3
    input_player1_x_btn = 2
    input_player1_l_btn = 4
    input_player1_r_btn = 5
    input_player1_start_btn = 9
    input_player1_select_btn = 8
    input_player2_joypad_index = 1
    input_player1_b_btn = 1
    input_player1_a_btn = 0
    input_player1_y_btn = 3
    input_player1_x_btn = 2
    input_player1_l_btn = 4
    input_player1_r_btn = 5
    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 = -32757
    input_player1_down_axis = +32767
    input_player1_left_axis = -32767
    input_player1_right_axis = +32767
    input_player2_up_axis = -32757
    input_player2_down_axis = +32767
    input_player2_left_axis = -32767
    input_player2_right_axis = +32767

    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"

    (Removed the # symbols from above as they were formatting the text incorrectly on here, but the symbol remains in my script)

    However, the new configuration isn't working and the default controls seem to remain. I have been using Metal Slug 3 as a test of controls. Currently, my B button is still performing the A action, my A action performing B and D for the final action, which should be C.

    I guess that I am missing something very simple, but have no idea what it is!

    Anyone have a clue?

    Cheers


  • Global Moderator

    a little confused - why are you rebinding for fba? did you not set up your controller via https://retropie.org.uk/docs/First-Installation/#configure-controllers ? you shouldn't need to rebind like this at the core level - it should use your global settings.



  • @tr3v0r when you set up a 6 button layout it is supposed to be set up as

    LXR
    YBA





  • @edmaul69 said in lr-FBA controller config:

    @tr3v0r https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration

    select modern retropad map as i would need to look up the source to work the classic out

    Y X R
    B A R1



  • @tr3v0r Sorry i won't be really answering your question since i have no clue how overrides work in retropie.
    But with a 6 buttons panel, fba will expect something like this :
    Y X L
    B A R
    With "classic" device type selected in "Quick Menu > Controls" (this is the default).

    Setting your controller as
    B X Y
    A L R
    Is a really bad idea, no retroarch core expect this kind of layout and you'll have to use override everywhere.



  • @edmaul69 said in lr-FBA controller config:

    @tr3v0r when you set up a 6 button layout it is supposed to be set up as

    LXR
    YBA

    yes there is massive confusion at the moment with 6 and 8 buttons.

    the Megadrive/Genesis (6 Button) layout you where using is probably for the megadrive emulator its no good in other cores. Keep in mind to remap your genesis core if your using this as a global



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.