From 9a94e3a1e0ed34cfbc39a43e2066d27343388118 Mon Sep 17 00:00:00 2001 From: alexis-puska Date: Sun, 3 Jul 2016 18:22:36 +0200 Subject: [PATCH] pad index fix --- libpcsxcore/plugins.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; -- 2.39.5