namcos1.cpp: Fixed joystick dropping inputs bug for crouching/running actions in Beraboh Man [Angelo Salese]

This commit is contained in:
angelosa 2017-08-12 10:43:00 +02:00
parent da18b88ba9
commit 6b357f4a30

View File

@ -1041,12 +1041,11 @@ READ8_MEMBER( namcos1_state::berabohm_buttons_r )
m_strobe_count = 0;
m_strobe ^= 0x40;
if (m_strobe == 0)
{
m_input_count = (m_input_count + 1) % 5;
if (m_input_count == 3) res |= 0x10;
}
}
// status bit, used to signal end of pressure sensitive button reads
if (m_input_count == 3) res |= 0x10;
res |= m_strobe;
return res;