From 94c562f17bbd528392fe0cb32c30e1c927801625 Mon Sep 17 00:00:00 2001 From: icex2 Date: Sun, 2 Apr 2023 01:39:00 +0200 Subject: [PATCH] feat(iidx 9-13): Wire up coin mech to IO emulation --- src/main/ezusb-iidx-emu/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ezusb-iidx-emu/msg.c b/src/main/ezusb-iidx-emu/msg.c index d85bc88..66615ab 100644 --- a/src/main/ezusb-iidx-emu/msg.c +++ b/src/main/ezusb-iidx-emu/msg.c @@ -126,7 +126,7 @@ static HRESULT ezusb_iidx_emu_msg_interrupt_read(struct iobuf *read) msg_resp->inverted_pad = ((iidx_io_ep2_get_keys() & 0x3FFF) << 8) | ((iidx_io_ep2_get_panel() & 0x0F) << 24) | - ((iidx_io_ep2_get_sys() & 0x03) << 28) | + ((iidx_io_ep2_get_sys() & 0x07) << 28) | (((iidx_io_ep2_get_sys() >> 2) & 0x01) << 22); /* make sure to update the current coin mode state, otherwise