X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fplugins.c;h=007b61e07c414e5c1a97fa63e0100bc82e299e5e;hb=15504ca8fb3d4dbcb1822f2aafb4797e88f88175;hp=9b6de03c72c85e1ee18f426af71104e11a4bddf6;hpb=0b4dc26d81f4a278e0c93fea72340002d785a43a;p=pcsx_rearmed.git diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 9b6de03c..007b61e0 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -612,7 +612,7 @@ void vibrate(int padIndex){ pad[padIndex].VibF[0] = pad[padIndex].Vib[0]; pad[padIndex].VibF[1] = pad[padIndex].Vib[1]; plat_trigger_vibrate(padIndex, pad[padIndex].VibF[0], pad[padIndex].VibF[1]); - printf("vibration pad %i", padIndex); + //printf("vibration pad %i", padIndex); } } @@ -764,7 +764,7 @@ unsigned char CALLBACK PAD1__startPoll(int pad) { } _PADstartPollMultitap(padd); } - printf("\npad 1 : "); + //printf("\npad 1 : "); return 0x00; } @@ -775,7 +775,7 @@ unsigned char CALLBACK PAD1__poll(unsigned char value) { }else{ tmp = _PADpoll(0, value); } - printf("%2x:%2x, ",value,tmp); + //printf("%2x:%2x, ",value,tmp); return tmp; } @@ -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; @@ -856,7 +861,7 @@ unsigned char CALLBACK PAD2__startPoll(int pad) { } _PADstartPollMultitap(padd); } - printf("\npad 2 : "); + //printf("\npad 2 : "); return 0x00; } @@ -867,7 +872,7 @@ unsigned char CALLBACK PAD2__poll(unsigned char value) { }else{ tmp = _PADpoll(1, value); } - printf("%2x:%2x, ",value,tmp); + //printf("%2x:%2x, ",value,tmp); return tmp; }