From: notaz Date: Wed, 13 Sep 2023 20:58:27 +0000 (+0300) Subject: psxbios: unbreak input X-Git-Tag: r24~155 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aecce153fe3f821a078cb9db00eac5c1540bb03;p=pcsx_rearmed.git psxbios: unbreak input --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 88f994f8..996a242b 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -3775,8 +3775,10 @@ void psxBiosCnfLoaded(u32 tcb_cnt, u32 evcb_cnt, u32 stack) { #define psxBios_PADpoll(pad) { \ int i, more_data = 0; \ - pad_buf##pad[0] = PAD##pad##_startPoll(pad); \ + PAD##pad##_startPoll(pad); \ pad_buf##pad[1] = PAD##pad##_poll(0x42, &more_data); \ + pad_buf##pad[0] = more_data ? 0 : 0xff; \ + PAD##pad##_poll(0, &more_data); \ i = 2; \ while (more_data) { \ pad_buf##pad[i++] = PAD##pad##_poll(0, &more_data); \