diff options
author | 2022-02-09 02:33:02 +1100 | |
---|---|---|
committer | 2022-02-09 02:33:02 +1100 | |
commit | eb221b22860fdc6a2da9d19a81735f61c00d2972 (patch) | |
tree | 88c3544b478481579ed3f8e1ea88090b99730f01 /src/emu/input.cpp | |
parent | 668bc119b89501677deba425bf4972cd5667ae8a (diff) |
emu/input.cpp: Only show items for first device in non-multi classes.
It's not possible to actually use higher-numbered device assignments for
classes that combine all host devices. For example you can't use the
default "Mouse 2" assignments if -multimouse isn't enabled. Fixes
MT06842.
Diffstat (limited to 'src/emu/input.cpp')
-rw-r--r-- | src/emu/input.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/input.cpp b/src/emu/input.cpp index 5c49d1c2dab..bfd118c249f 100644 --- a/src/emu/input.cpp +++ b/src/emu/input.cpp @@ -1150,7 +1150,7 @@ input_seq input_manager::seq_clean(const input_seq &seq) const { // if this is a code item which is not valid, don't copy it and remove any preceding ORs/NOTs input_code code = seq[codenum]; - if (!code.internal() && code_name(code).empty()) + if (!code.internal() && (((code.device_index() > 0) && !m_class[code.device_class()]->multi()) || !item_from_code(code))) { while (clean_index > 0 && clean_codes[clean_index - 1].internal()) { |