Skip to content

Commit

Permalink
pce-common: fix pce_joypad_read() multitap support (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka authored Nov 25, 2023
1 parent dccf9f7 commit cd3055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mos-platform/pce-common/libpce/src/joypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cd3055e

Please sign in to comment.