From bd8dc18b30fc8f4a09b30015d46996fd0c985906 Mon Sep 17 00:00:00 2001 From: icex2 Date: Tue, 11 Aug 2020 22:05:46 +0200 Subject: [PATCH] iidxio-ezusb: Support coin mech input --- src/main/iidxio-ezusb/iidxio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/iidxio-ezusb/iidxio.c b/src/main/iidxio-ezusb/iidxio.c index 3852582..0a74a29 100644 --- a/src/main/iidxio-ezusb/iidxio.c +++ b/src/main/iidxio-ezusb/iidxio.c @@ -192,7 +192,8 @@ uint8_t iidx_io_ep2_get_slider(uint8_t slider_no) uint8_t iidx_io_ep2_get_sys(void) { - return ((~iidx_io_ezusb_read_packet.inverted_pad) >> 28) & 0x03; + return (((~iidx_io_ezusb_read_packet.inverted_pad) >> 28) & 0x03) | + ((((~iidx_io_ezusb_read_packet.inverted_pad) >> 22) & 0x01) << 2); } uint8_t iidx_io_ep2_get_panel(void)