From cd3055eeb6c8adfea511a45f403485c02def8617 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sat, 25 Nov 2023 17:43:18 +0100 Subject: [PATCH] pce-common: fix pce_joypad_read() multitap support (#249) --- mos-platform/pce-common/libpce/src/joypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mos-platform/pce-common/libpce/src/joypad.c b/mos-platform/pce-common/libpce/src/joypad.c index 299d463b8..45f819439 100644 --- a/mos-platform/pce-common/libpce/src/joypad.c +++ b/mos-platform/pce-common/libpce/src/joypad.c @@ -17,8 +17,8 @@ uint8_t pce_joypad_wr(uint8_t value) { } __attribute__((noinline)) uint8_t pce_joypad_next(void) { - uint8_t low = pce_joypad_wr(0); uint8_t high = pce_joypad_wr(JOYPAD_SEL); + uint8_t low = pce_joypad_wr(0); return (low & 0xF) | (high << 4); }