From 22978afc9b91e4c05a6d68d64a3f0885bf5ebcbf Mon Sep 17 00:00:00 2001 From: icex2 Date: Sun, 2 Apr 2023 01:39:37 +0200 Subject: [PATCH] feat(iidx 14-24): Wire up coin mech to IO emulation --- src/main/ezusb2-iidx-emu/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ezusb2-iidx-emu/msg.c b/src/main/ezusb2-iidx-emu/msg.c index d6600f3..1279ea9 100644 --- a/src/main/ezusb2-iidx-emu/msg.c +++ b/src/main/ezusb2-iidx-emu/msg.c @@ -85,7 +85,7 @@ static HRESULT ezusb2_iidx_emu_msg_interrupt_read(struct iobuf *read) msg_resp.inverted_pad = ((iidx_io_ep2_get_keys() & 0x3FFF) << 16) | (iidx_io_ep2_get_panel() & 0x0F) | - ((iidx_io_ep2_get_sys() & 0x03) << 4) | + ((iidx_io_ep2_get_sys() & 0x07) << 4) | (((iidx_io_ep2_get_sys() >> 2) & 0x01) << 30); msg_resp.inverted_pad = ~msg_resp.inverted_pad;