hle_mouse: minor fixes (nw)

The Indy/Indigo² issue appears to be related wait states or other unemulated delays on the driver side, and not a problem with this device or at_keybc.
This commit is contained in:
Patrick Mackinlay 2019-05-31 19:23:06 +07:00
parent 9658fd8bba
commit d944b36ca8

View File

@ -32,7 +32,6 @@
* - IntelliMouse device/protocol (4-byte packet, 5 buttons, scroll wheel) * - IntelliMouse device/protocol (4-byte packet, 5 buttons, scroll wheel)
* - configurable clock (10kHz-16.7kHz) * - configurable clock (10kHz-16.7kHz)
* - receive parity error handling * - receive parity error handling
* - resolve issue with earlier Indy/Indigo² PROM versions (IBF ignored)
*/ */
#include "emu.h" #include "emu.h"
@ -95,6 +94,7 @@ void hle_ps2_mouse_device::device_start()
save_item(NAME(m_rx_buf)); save_item(NAME(m_rx_buf));
save_item(NAME(m_tx_len)); save_item(NAME(m_tx_len));
save_item(NAME(m_tx_pos)); save_item(NAME(m_tx_pos));
save_item(NAME(m_tx_buf));
save_item(NAME(m_data)); save_item(NAME(m_data));
save_item(NAME(m_parity)); save_item(NAME(m_parity));
@ -399,6 +399,7 @@ void hle_ps2_mouse_device::command(u8 const command)
m_tx_buf[m_tx_len++] = 0xfa; m_tx_buf[m_tx_len++] = 0xfa;
// force data sample after acknowledge transmitted // force data sample after acknowledge transmitted
if (!m_sample->enabled())
m_sample->adjust(serial_cycle * 48, 1); m_sample->adjust(serial_cycle * 48, 1);
break; break;