X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=libpcsxcore%2Fplugins.c;h=8d99be2d471cf2d3e66d7260a61a41ee3b925f66;hb=4c7a462ed37b73f05ff8cc16b477c22e5b2daa26;hp=19de72c51364b74e7822139512a7d16e38d354dc;hpb=8b9b4c9f8f3d892c657e5a4ad0f799c23cfa735b;p=pcsx_rearmed.git diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 19de72c5..8d99be2d 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -747,7 +747,8 @@ unsigned char _PADpoll(int port, unsigned char value) { req = value; // Don't enable Analog/Vibration for a standard pad - if (in_type[port] == PSE_PAD_TYPE_STANDARD) { + if (in_type[port] == PSE_PAD_TYPE_STANDARD || + in_type[port] == PSE_PAD_TYPE_NEGCON) { ; // Pad keystate already in buffer } else @@ -772,9 +773,13 @@ unsigned char _PADpoll(int port, unsigned char value) { case CMD_READ_DATA_AND_VIBRATE: //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) + break; + //vibration - if (in_type[port] != PSE_PAD_TYPE_STANDARD) - vibrate(port); + vibrate(port); break; } break;