From: alexis-puska Date: Sun, 3 Jul 2016 16:22:36 +0000 (+0200) Subject: pad index fix X-Git-Tag: r24l~847^2~1 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a94e3a1e0ed34cfbc39a43e2066d27343388118;p=pcsx_rearmed.git pad index fix --- diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 9b6de03c..f56afc7c 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -826,11 +826,16 @@ static int LoadPAD1plugin(const char *PAD1dll) { unsigned char CALLBACK PAD2__startPoll(int pad) { reqPos = 0; int pad_index = 0; - if(multitap2 == 2){ + if(multitap1 == 0 && multitap2 == 0){ + pad_index += 1; + }else if(multitap1 == 1 && multitap2 == 0){ + pad_index += 4; + }else if(multitap1 == 0 && multitap2 == 2){ + pad_index += 1; + }else if(multitap1 == 1 && multitap2 == 2){ pad_index += 4; - }else{ - pad_index = 1; } + //first call the pad provide if a multitap is connected between the psx and himself if(multitap2 == -1){ PadDataS padd;