Main > Software Forum
MAME cheat button?
jelwell:
I didn't address the single key cheat button in my original reply because the last time I setup my cabinet the version of MAME I was using supported pressing a single button and displaying ONLY the cheat portion of the menu with no way to get into the rest of the menu system. Not sure when this was removed.
I can see in my old default.cfg
--- Quote --- <port type="UI_CHEAT">
<defseq type="standard">KEYCODE_HOME</defseq>
<newseq type="standard">KEYCODE_W</newseq>
</port>
--- End quote ---
I don't see an option to configure this in .149.
Joseph Elwell.
p1mrx:
I got this working in Lua. Note that this uses the cheat plugin, not the -cheat command line flag.
--- Code: ----- mame -autoboot_script cheat_button.lua
--
-- This script opens the "Plugin Options" > "Cheat" menu when a button is pressed.
-- You must enable "cheat" in plugin.ini, or the menu will be blank.
frame_sub = emu.add_machine_frame_notifier(function()
local input = manager.machine.input
local ui = manager.ui
-- example buttons:
local seq = input:seq_from_tokens("KEYCODE_F12 or JOYCODE_BUTTON1")
if not ui.menu_active and input:seq_pressed(seq) then
emu.show_menu("Cheat")
end
end)
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version