pokey: Latch current value of keyboard count when registering presses in non-debounce mode. Fixes start button not responding in a5200:pitfall.

This commit is contained in:
AJR 2023-10-19 11:37:00 -04:00
parent c662f2ec6b
commit 4dfc36ae47

View File

@ -505,7 +505,7 @@ void pokey_device::step_keyboard()
{
if (ret & 1)
{
m_KBCODE = m_kbd_latch;
m_KBCODE = (m_SKCTL & SK_DEBOUNCE) ? m_kbd_latch : (m_kbd_latch & 0xc0) | m_kbd_cnt;
m_SKSTAT |= SK_KEYBD;
if (m_IRQEN & IRQ_KEYBD)
{