Fix for a potential problem if natural keyboard input gets disabled while machine is running (nw)

This commit is contained in:
AJR 2016-12-31 17:11:10 -05:00
parent 9558460b68
commit dd1d40b9fd

View File

@ -372,7 +372,13 @@ void natural_keyboard::set_in_use(bool usage)
for (auto &port : machine().ioport().ports())
for (ioport_field &field : port.second->fields())
if (field.type() == IPT_KEYBOARD)
{
field.live().lockout = usage;
// clear pressed status when going out of use
if (!usage)
field.set_value(0);
}
}
}