diff options
Diffstat (limited to 'src/emu/ioport.cpp')
-rw-r--r-- | src/emu/ioport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp index 281563935c3..cd8f49fe0d6 100644 --- a/src/emu/ioport.cpp +++ b/src/emu/ioport.cpp @@ -1378,7 +1378,7 @@ ioport_field_live::ioport_field_live(ioport_field &field, analog_field *analog) if (field.type_class() == INPUT_CLASS_KEYBOARD && field.specific_name() == nullptr) { // loop through each character on the field - for (int which = 0; which < 4; which++) + for (int which = 0; which < (1 << (UCHAR_SHIFT_END - UCHAR_SHIFT_BEGIN + 1)); which++) { std::vector<char32_t> const codes = field.keyboard_codes(which); if (codes.empty()) |