Skip to content

Commit cd3055e

Browse files
authored
pce-common: fix pce_joypad_read() multitap support (#249)
1 parent dccf9f7 commit cd3055e

File tree

1 file changed

+1
-1
lines changed
  • mos-platform/pce-common/libpce/src

1 file changed

+1
-1
lines changed

mos-platform/pce-common/libpce/src/joypad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ uint8_t pce_joypad_wr(uint8_t value) {
1717
}
1818

1919
__attribute__((noinline)) uint8_t pce_joypad_next(void) {
20-
uint8_t low = pce_joypad_wr(0);
2120
uint8_t high = pce_joypad_wr(JOYPAD_SEL);
21+
uint8_t low = pce_joypad_wr(0);
2222
return (low & 0xF) | (high << 4);
2323
}
2424

0 commit comments

Comments
 (0)