summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author stephh <stephh@users.noreply.github.com>2008-02-28 18:23:37 +0000
committer stephh <stephh@users.noreply.github.com>2008-02-28 18:23:37 +0000
commit9d6f8060d64b0dc763849edf3865d15e2284bb8e (patch)
treec38fc0412b7fe28ae813a6f82aeec8317fb64719 /src
parentc1eddd07639c9fda7dfffe080fc60947dbc2cf8b (diff)
"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).
Diffstat (limited to 'src')
-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 368c46362af..62e65de976c 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -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 */