Wireless Xbox 360 Controllers, MAME, working configs for Retroarch.
-
Here are working retroarch.cfg to exit mame and to input coins and start games, and to use the left joystick instead of the D-PAD within lr-MAME versions.
These settings below can be put within the All folder retroarch.cfg which covers all lr-mame versions. You can also do it within the particular emulator folders such as mame4all or fba. Obviously when playing mame4all you need to choose between 2 different emulators and you'd have to select lr-mame version for this to function.
configs\all\retroarch-joypads
MicrosoftX-Box360pad.cfginput_device = "Microsoft X-Box 360 pad"
input_driver = "udev"
input_r_y_plus_axis = "+4"
;input_l3_btn = "9"
input_r_x_minus_axis = "-3"
input_l2_btn = "4"
input_start_btn = "9"
input_exit_emulator_btn = "9"
input_l_y_minus_axis = "-1"
input_l_axis = "+2"
input_load_state_axis = "+2"
input_up_btn = "h0up"
input_r_y_minus_axis = "-4"
input_a_btn = "0"
input_b_btn = "1"
input_reset_btn = "1"
input_down_btn = "h0down"
input_r2_btn = "5"
input_l_x_plus_axis = "+0"
input_l_y_plus_axis = "+1"
input_r3_btn = "10"
input_right_btn = "h0right"
input_state_slot_increase_btn = "h0right"
input_x_btn = "2"
input_menu_toggle_btn = "2"
input_select_btn = "8"
input_enable_hotkey_btn = "8"
input_l_x_minus_axis = "-0"
input_y_btn = "3"
input_left_btn = "h0left"
input_state_slot_decrease_btn = "h0left"
input_r_x_plus_axis = "+3"configs/all, configs/mame-mame4all, configs/fba (MAME4ALL and LR-FBA-NEXT)
retroarch.cfginput_player1_joypad_index = "0"
input_player2_joypad_index = "1"
input_player1_analog_dpad_mode = "1"
input_player2_analog_dpad_mode = "1"
input_enable_hotkey_btn = "8"
input_exit_emulator_btn = "9"Now the above will get you through most of the issues with Xbox 360 controllers and MAME, but there are some I'm still trying to figure out. Hopefully with others responding we can figure out these items.
Retroarch menu not able to bring up Select + anything
Keyboard "Tab" not working though within the MAME versions above.
Changing "Tab" to work with joystick button and need to get another joystick button to be used for "Reset" within the MAME emulators and here's why:Tab allows you to enter the games input menu
Reset allows you to reset the games service mode needed for games like Defender where it has to be reset at least once to be able to get the game to work.At one point I had my trigger as "Tab" or input menu selection and right bumper as "Reset" but this was only when I was able to enter the MAME input menu. After resetting everything and starting over I lost those settings and now am unable to enter the input menu anymore with keyboard or joystick.
-
I was able to figure out 2 more items to hopefully have a perfect working condition for the those using Xbox 360 controllers and MAME and the use of RetroPie.
With the Retroarch.cfg find this line and remove the comment (#) and make it = 2. This then allows you to enter the RGUI (Retroarch Gui) by using the 2 sticks and pressing directly down on them, not down as in direction but pressing them.
#input_menu_toggle_gamepad_combo = 2
another item within this file is - this allows you to use your Select key + your right Bumper key to reset games in MAME such as Defender where it won't work unless it's reset so that you can then enter coins.
#Reset the content.
input_reset = 5I've also changed when looking at the overall configuration of the controllers from my first post you will see the line.
input_reset_btn = "5" instead of "1".I'm now still working on getting the "TAB" key to work again on my keyboard or from the controller config. Unfortunately anything I've found within RGUI (Retroarch Gui) will only allow you to bring up RGUI (Retroarch Gui) and not the (MAME GUI).
-
Here is the issue. When using lr-imame4all as the emulator for mame4all you can (Not) get TAB to work. So changing back to mame4all as the emulator you can then enter the TAB screen.
The key here is enter the MAMEUI menu here (TAB) keyboard and be sure to choose Input (General). Now here you want to set your joystick with multiple buttons items listed below, but you still want your keyboard to still work when something goes wrong.
So set what you see below. Once you put a joystick item in it erases what was there for keyboard you then need to his ESC on keyboard and then put back in the key from keyboard that was there originally you can see what they were below. Once you have this all done you no longer will need a keyboard for playing mame4all.
Config Menu - J1 JoyButton 7 = (RTrigger) or Keyboard TAB
Reset Game - J1 JoyButton 5 = (RBumper) or Keyboard F3
UI Cancel - J1 JoyButton 12 = (RStick Press) or Keyboard ESC - this will allow you to exit the menu and even the emulator since Select + Start (Does NOT) work for mame4all
1 Player Start - J1 JoyButton 9 = (Select) or Keyboard 1
2 Player Start - J2 JoyButton 9 = (Select ) or Keyboard 2
Coin 1 - J1 JoyButton 8 = (Start) or Keyboard 5
Coin 2 - J2 JoyButton 8 = (Start) or Keyboard 6These settings will be saved under under /configs/mame-mame4all/cfg and in default.cfg. Save this file for later use and incase you format and start over. You will also want to save your retroarch-joypads/MicrosoftX-Box360pad.cfg and XboxGamepad(userspacedriver).cfg and last but not least your /configs/all/retroarch.cfg or /configs/mame-mame4all/retroarch.cfg even though these should be the same just depends on which one is actually being used.
Now if you take everything from my 2 other posts and this one then regardless of what you use everything should work properly and normally for these 2 mame emulators and the use of 2 xbox 360 wireless controllers.
mame4all = lr-imame4all and mame4all
lr-fba-next
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.