mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
"Input (this Game)" menu now handles conditional inputs.
See 'qcrayon2' in taito_f2.c driver (play with the last Dip Switch and look how inputs change).
This commit is contained in:
parent
c1eddd0763
commit
9d6f8060d6
@ -1887,7 +1887,7 @@ static int input_menu_get_game_items(input_item_data *itemlist)
|
||||
const char *name = input_port_name(in);
|
||||
|
||||
/* add if we match the group and we have a valid name */
|
||||
if (name != NULL &&
|
||||
if ((name != NULL) && (input_port_condition(in)) &&
|
||||
#ifdef MESS
|
||||
(in->category == 0 || input_category_active(in->category)) &&
|
||||
#endif /* MESS */
|
||||
|
Loading…
Reference in New Issue
Block a user