mirror of
https://github.com/holub/mame
synced 2025-07-01 00:09:18 +03:00
Fix for a potential problem if natural keyboard input gets disabled while machine is running (nw)
This commit is contained in:
parent
9558460b68
commit
dd1d40b9fd
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user