@mitu said in Can't exit game in MAME:
@Rhees
Look at the Runcommand start message - it will tell you what emulator it's starting.
EDIT:
Also try
input_enable_hotkey = 8
input_exit_emulator = 9
You don't really have a gamepad, but a keyboard, so the _btn might be extra. Where have you added these settings ?
MAME4ALL Alternate Fix: I battled this issue for a few days before I found a fix that worked on my system (RPi 3B) when the solutions above didn't work.
With both Joypad/Controller and Keyboard plugged in to RasPi...
start a game that uses MAME4ALL
press TAB on keyboard once game starts (brings up User Interface menu)
use keyboard arrow keys and ENTER to...
select "Input (general)"
arrow down to "UI Cancel" - this is the exit game command
ENTER (waits for button to map)
(on Joypad/Controller) press and hold both your the buttons you have already mapped for enable_hotkey and exit_emulator. Note: I don't think you have to use those specific buttons, it just keeps it consistent with your other games and systems
I hit enter again on the UI Cancel line and hit the ESC button on the keyboard to make sure both the joypad combo and esc still worked to exit.
arrow key up or down to "Return to Main Menu"
arrow key down to "Return to Game"
You can use this method to map the other UI controls (UI Up, Down, Left, Right, Select) so you can navigate the UI without a keyboard in the future. It's a good idea to set a two-button combo to bring up the UI menu (Config Menu is the first line of the Input - General menu).
Later I found this video that walked through the steps: