Map Exit Button with lr-mame2003
-
I can't seem to find a reliable way to exit games when using the lr-mame2003 MAME core if I've defined any custom keys. I did find several posts on this forum on how to make a custom mapping with advancemame that would get around this, but I can't find any details for lr-mame2003. If I haven't changed the mapping, I can push start and select simultaneously. If I have changed the mapping, this doesn't work. The odd thing is that I don't believe I've mapped these keys to anything other the the default start and coin function in my custom mappings. I thought maybe I could just define a new key in the TAB->Input (general) menu. The closest function I could find was UI cancel though and that seems to only work for the pop up (TAB) menu. Pushing that key without the menu did not exit the game when I tried. Has anyone encountered this issue before?
As a side note, I'm really new to retropi and retroarch, but very impressed!
Forgot some details
Raspberry Pi 3 model B with retro-pi 4.1 pre-made disk image for the 3. I'm using an NES style controller from ebay and a keyboard.
-
-
when you say you've "changed the mapping" - what have you done and why? you shouldn't ever need to change retroarch mapping in mame, so start and select should always work.
-
@dankcushions @rbaker Thanks for the replies guys. Oddly, I am not having this issue today using a different controller. What's a little strange is that I still had my current controller plugged in yesterday (and I haven't remapped it), but was using a different controller to play an arcade game. Start+Select would not work on either controller. If lr-mame2003 will only take the exit command from the player 1 controller, maybe that controller just wouldn't support simultaneous button presses. I'll report back if I see this issue again. This is a bit inconsistent.
@dankcushions , I changed the button mapping on a specific arcade game (using MAME's TAP->Input (This game) menu) to match the mapping on the cabinet (using a friend's arcade stick controller). I did the default RetroPi controller config, but wanted a specific configuration for one game. What's odd is that when both that controller and my NES controller were plugged in, Start+Select would not work on either one. I thought this was because of my custom mappings - maybe not.
@rbaker, I see those config files and they do appear to be correct. The only custom mapping I saw was under MAME4ALL's configuration files. Are lr-mame2003's game configurations stored in MAME4ALL's folder?
-
@wayfarer said in Map Exit Button with lr-mame2003:
The only custom mapping I saw was under MAME4ALL's configuration files. Are lr-mame2003's game configurations stored in MAME4ALL's folder?
You need to know that lr-mame2003 is based on retroarch and MAME4ALL is not. In RetroPie, the libretro emulator cores are identified with a lr- in front of their name. In order to modify the controls, you edit this retroarch.cfg file as shown in the example on the wiki page.
/opt/retropie/configs/all/retroarch.cfg
With regard to Mame4all, you should press TAB and manually edit the keys. This is best done with a keyboard in the first instance in my experience or with both connected.
This link may also help you generally:
https://retropie.org.uk/forum/topic/2859/how-to-use-mame-with-retropie-help-guideI found it very helpful.
-
actually i DO suggest using tab to change game bindings in mame2003. the advantage is that it is more flexible and also doesn't conflict with your hotkey mappings (start and select to exit, for example). if you change your mappings in retroarch or in the retroarch.cfg, you risk messing that stuff up.
If lr-mame2003 will only take the exit command from the player 1 controller, maybe that controller just wouldn't support simultaneous button presses. I'll report back if I see this issue again. This is a bit inconsistent.
older versions of retroarch would only receive hotkey functions from player 1. i believe if you update retroarch via the setup-script, it should receive them from all controllers. assuming you haven't changed the config...
-
@rbaker. Thanks for the link. I understand that lr-mame2003 is a core. The main reason that I'm using it is that my ROMs are compatible with MAME 0.78. I'm really just wondering where it saves the individual game config files as made in the TAB menu, as I'm not seeing them broken out into individual files as was the case for MAME4ALL.
@dankcushions, that's good to know. I am actually using the TAB menu to set my individual game configurations. Just a little confused about where lr-mame2003 saves these. I haven't updated, but I think my system is up to date. I just downloaded the sd card images within the last couple weeks (retro-pi-4.1).
-
@wayfarer this shows you where cfgs are stored: https://github.com/RetroPie/RetroPie-Setup/wiki/lr-mame2003#mame-menu
-
Awesome! If I have this issue again, I will check the exit mapping in those files. Thanks guys. Merry Christmas / Happy Holidays!
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.