mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
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
This commit is contained in:
parent
38916f18c8
commit
2ca316ec14
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user