"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:
stephh 2008-02-28 18:23:37 +00:00
parent c1eddd0763
commit 9d6f8060d6

View File

@ -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 */