mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00
Moved reset to default behavior in the cheat menu to IPT_UI_CLEAR.
This commit is contained in:
parent
89730e4d28
commit
a6c3d9b671
@ -2482,10 +2482,14 @@ static void menu_cheat(running_machine *machine, ui_menu *menu, void *parameter,
|
|||||||
{
|
{
|
||||||
switch (event->iptkey)
|
switch (event->iptkey)
|
||||||
{
|
{
|
||||||
/* if selected, reset to default value or activate a oneshot */
|
/* if selected, activate a oneshot */
|
||||||
case IPT_UI_SELECT:
|
case IPT_UI_SELECT:
|
||||||
|
changed = cheat_activate(machine, event->itemref);
|
||||||
|
break;
|
||||||
|
|
||||||
|
/* if cleared, reset to default value */
|
||||||
|
case IPT_UI_CLEAR:
|
||||||
changed = cheat_select_default_state(machine, event->itemref);
|
changed = cheat_select_default_state(machine, event->itemref);
|
||||||
changed |= cheat_activate(machine, event->itemref);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* left decrements */
|
/* left decrements */
|
||||||
|
Loading…
Reference in New Issue
Block a user