summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/8042kbdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/8042kbdc.cpp')
-rw-r--r--src/devices/machine/8042kbdc.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/devices/machine/8042kbdc.cpp b/src/devices/machine/8042kbdc.cpp
index a2e29d90c4f..c86a44a1f0a 100644
--- a/src/devices/machine/8042kbdc.cpp
+++ b/src/devices/machine/8042kbdc.cpp
@@ -407,9 +407,17 @@ void kbdc8042_device::data_w(offs_t offset, uint8_t data)
m_mouse.from_transmit = 0;
m_mouse.to_transmit = 0;
m_mouse.reporting = false;
- mouse_enqueue(0xfa);
- mouse_enqueue(0xaa);
- mouse_enqueue(0x00);
+ if (m_mouse.on)
+ {
+ mouse_enqueue(0xfa);
+ mouse_enqueue(0xaa);
+ mouse_enqueue(0x00);
+ }
+ else
+ {
+ m_mouse.received = 1;
+ m_data = 0xfa;
+ }
break;
case 0xf6:
mouse_enqueue(0xfa);