X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fplugins.c;h=87b574d442a7895dcf08ae3954ab412b28484496;hb=6fe8a1d4501485790b5a58f1a4c62130dd70afb4;hp=a2f8fe27503b06ceda0201ffb6b53e9badbe6ed8;hpb=d526ed8c645d7e2147b7d454f29d123b4cfa311d;p=pcsx_rearmed.git diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index a2f8fe27..87b574d4 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -776,7 +776,9 @@ unsigned char _PADpoll(int port, unsigned char value) { } //if no new request the pad return 0xff, for signaling connected - if (reqPos >= respSize) return 0xff; + if (reqPos >= respSize + && writeok + ) return 0xff; switch(reqPos){ case 2: @@ -791,8 +793,7 @@ unsigned char _PADpoll(int port, unsigned char value) { //mem the vibration value for Large motor; pad[port].Vib[1] = value; - if (in_type[port] == PSE_PAD_TYPE_STANDARD && - in_type[port] == PSE_PAD_TYPE_NEGCON) + if (in_type[port] != PSE_PAD_TYPE_ANALOGPAD) break; //vibration