summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-09-21 08:45:59 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-09-21 08:45:59 +0000
commit2ca316ec1427f8479a41eb8a8d1bde035bbad46d (patch)
tree33f2836e7e8ef04c82df6e905c4e0583a314078e
parent38916f18c8ff62ddffc61a581d05d027577abfd2 (diff)
From: Pugsy [pugsy@gmx.net]
Sent: Thursday, September 10, 2009 7:10 AM To: submit@mamedev.org Cc: upstephh_wip@yahoo.com Subject: Quick fix for the F6 toggle Hi My last diff got altered before getting included, I appreciate this would likely get done (and many thanks for doing it) but it did lose the F6 functionality when a cheat was selected. Eg. if you have the cursor bar over Infinite Time then F6 will not work. My original solution using numbered calls was not ideal but it did work, I'd spent ages trying to find the appropriate routine to call without joy. Annoyingly I just tried again with 0.134 and it took less than 5 minutes to fix it properly....DOH!!! Anyway I've attached a simple one-line diff for 0.134 to hook up F6 wherever the cursor bar is on the cheat menu screens. It just changes this in uimenu.c.:- - if (exclusive_input_pressed(menu, IPT_UI_TOGGLE_CHEAT, 0)) + if (ui_input_pressed_repeat(menu->machine, IPT_UI_TOGGLE_CHEAT, 0)) Martin 'Pugsy' Pugh
-rw-r--r--src/emu/uimenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index dd63526b420..d0d53c89d4b 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -1229,7 +1229,7 @@ static void ui_menu_handle_keys(ui_menu *menu, UINT32 flags)
mame_pause(menu->machine, !mame_is_paused(menu->machine));
/* handle a toggle cheats request */
- if (exclusive_input_pressed(menu, IPT_UI_TOGGLE_CHEAT, 0))
+ if (ui_input_pressed_repeat(menu->machine, IPT_UI_TOGGLE_CHEAT, 0))
cheat_set_global_enable(menu->machine, !cheat_get_global_enable(menu->machine));
/* see if any other UI keys are pressed */