From 2ca316ec1427f8479a41eb8a8d1bde035bbad46d Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 21 Sep 2009 08:45:59 +0000 Subject: 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 --- src/emu/uimenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3