mirror of
https://github.com/holub/mame
synced 2025-06-08 13:53:52 +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,6 +209,7 @@ void kbdc8042_device::device_timer(emu_timer &timer, device_timer_id id, int par
|
|||||||
if (id == TIMER_UPDATE)
|
if (id == TIMER_UPDATE)
|
||||||
{
|
{
|
||||||
at_8042_check_keyboard();
|
at_8042_check_keyboard();
|
||||||
|
if (m_mouse.on)
|
||||||
at_8042_check_mouse();
|
at_8042_check_mouse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -277,6 +278,7 @@ uint8_t kbdc8042_device::data_r(offs_t offset)
|
|||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
at_8042_check_keyboard();
|
at_8042_check_keyboard();
|
||||||
|
if (m_mouse.on)
|
||||||
at_8042_check_mouse();
|
at_8042_check_mouse();
|
||||||
|
|
||||||
if (m_keyboard.received || m_mouse.received)
|
if (m_keyboard.received || m_mouse.received)
|
||||||
@ -321,7 +323,7 @@ void kbdc8042_device::data_w(offs_t offset, uint8_t data)
|
|||||||
switch (m_operation_write_state) {
|
switch (m_operation_write_state) {
|
||||||
case 0:
|
case 0:
|
||||||
m_data = data;
|
m_data = data;
|
||||||
m_sending=1;
|
m_sending = 1;
|
||||||
m_keyboard_dev->write(data);
|
m_keyboard_dev->write(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user