mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
8042kbdc.cpp: generate data for mouse only if mouse is enabled
Now it is possible to use the nforcepc bios setup without it crashing.
This commit is contained in:
parent
10302ecd6d
commit
97a680d67d
@ -209,7 +209,8 @@ void kbdc8042_device::device_timer(emu_timer &timer, device_timer_id id, int par
|
||||
if (id == TIMER_UPDATE)
|
||||
{
|
||||
at_8042_check_keyboard();
|
||||
at_8042_check_mouse();
|
||||
if (m_mouse.on)
|
||||
at_8042_check_mouse();
|
||||
}
|
||||
}
|
||||
|
||||
@ -277,7 +278,8 @@ uint8_t kbdc8042_device::data_r(offs_t offset)
|
||||
|
||||
case 4:
|
||||
at_8042_check_keyboard();
|
||||
at_8042_check_mouse();
|
||||
if (m_mouse.on)
|
||||
at_8042_check_mouse();
|
||||
|
||||
if (m_keyboard.received || m_mouse.received)
|
||||
data |= 1;
|
||||
@ -321,7 +323,7 @@ void kbdc8042_device::data_w(offs_t offset, uint8_t data)
|
||||
switch (m_operation_write_state) {
|
||||
case 0:
|
||||
m_data = data;
|
||||
m_sending=1;
|
||||
m_sending = 1;
|
||||
m_keyboard_dev->write(data);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user