One button does not work in Mame-Libretro -- the L button
-
Apparently in all other systems, and in Emulation Station all the buttons of my system work just as expected. The only thing it doesn't work properly in is Mame.
All the buttons are mapped weird. They work perfectly fine in FBA, SNES, NES and others. But the L button, which is mapped to button "4" will do nothing.
Here's my config that works with everything:
input_device = "TTT THT Arcade console 2P USB Player" input_driver = "udev" input_l_btn = "4" input_start_btn = "9" input_exit_emulator_btn = "9" input_up_axis = "-1" input_a_btn = "2" input_b_btn = "1" input_reset_btn = "1" input_down_axis = "+1" input_r_btn = "5" input_right_axis = "+0" input_state_slot_increase_axis = "+0" input_x_btn = "3" input_menu_toggle_btn = "3" input_select_btn = "8" input_enable_hotkey_btn = "8" input_y_btn = "0" input_left_axis = "-0" input_state_slot_decrease_axis = "-0"
So I added the following to retroarch.cfg in the Mame-Libreto specific folder:
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line input_remapping_directory = "/opt/retropie/configs/mame-libretro/" input_player1_joypad_index = 0 input_player1_b_btn = 1 input_player1_a_btn = 2 input_player1_y_btn = 0 input_player1_x_btn = 3 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_player2_b_btn = 1 input_player2_a_btn = 2 input_player2_y_btn = 0 input_player2_x_btn = 3 input_player2_l_btn = 4 input_player2_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 = -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 #include "/opt/retropie/configs/all/retroarch.cfg"
It's driving me bonkers on why that button isn't working. It's not a HUGE deal, most of the old classic games don't have 6 buttons -- but some do.
Any help would be ideal.
Thanks!
-
-
Arcade controls using a Xin Mo board. It seems to be wired correct since everything else recognizes every button the way it's mapped. The only exception to that is Libretro MAME -- I've not tried any of the other MAMEs, not sure if that will be any different.
-
Try raising the MAME menu by pressing the 'TAB' key to check the mapping inside the 'Input (General)' sub-menu. It looks like the L button normally gets mapped to 'P1 Button 5'. The game you're trying to play may simply not call out to that button. If that is the case and you wish to change it, you can remap the MAME input globally from that menu or back out one and change the mapping for just that game in the 'Input (This Game)' sub-menu.
-
@mediamogul By George you nailed it!
Thanks again!
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.