void *hPAD1Driver = NULL;
void *hPAD2Driver = NULL;
-static int multitap1 = -1;
-static int multitap2 = -1;
+static int multitap1;
+static int multitap2;
//Pad information, keystate, mode, config mode, vibration
static PadDataS pad[8];
memcpy(buf, stdpar, 8);
respSize = 8;
break;
- case PSE_PAD_TYPE_GUNCON: // GUNCON - gun controller SLPH-00034 from Namco
+ case PSE_PAD_TYPE_GUNCON: // GUNCON - gun controller SLPH-00034 from Namco
stdpar[0] = 0x63;
stdpar[1] = 0x5a;
stdpar[2] = pad->buttonStatus & 0xff;
unsigned char CALLBACK PAD1__startPoll(int pad) {
reqPos = 0;
// first call the pad provide if a multitap is connected between the psx and himself
- if (multitap1 == -1) {
- PadDataS padd;
- padd.requestPadIndex = 0;
- PAD1_readPort1(&padd);
- multitap1 = padd.portMultitap;
- }
// just one pad is on port 1 : NO MULTITAP
if (multitap1 == 0) {
PadDataS padd;
if (PAD1_##dest == NULL) PAD1_##dest = (PAD##dest) PAD1__##dest;
static int LoadPAD1plugin(const char *PAD1dll) {
+ PadDataS padd;
void *drv;
hPAD1Driver = SysLoadLibrary(PAD1dll);
LoadPad1Sym0(poll, "PADpoll");
LoadPad1SymN(setSensitive, "PADsetSensitive");
+ padd.requestPadIndex = 0;
+ PAD1_readPort1(&padd);
+ multitap1 = padd.portMultitap;
+
return 0;
}
pad_index = 0;
}
- //first call the pad provide if a multitap is connected between the psx and himself
- if (multitap2 == -1) {
- PadDataS padd;
- padd.requestPadIndex = pad_index;
- PAD2_readPort2(&padd);
- multitap2 = padd.portMultitap;
- }
-
// just one pad is on port 1 : NO MULTITAP
if (multitap2 == 0) {
PadDataS padd;
LoadSym(PAD2_##dest, PAD##dest, name, FALSE);
static int LoadPAD2plugin(const char *PAD2dll) {
+ PadDataS padd;
void *drv;
hPAD2Driver = SysLoadLibrary(PAD2dll);
LoadPad2Sym0(poll, "PADpoll");
LoadPad2SymN(setSensitive, "PADsetSensitive");
+ padd.requestPadIndex = 0;
+ PAD2_readPort2(&padd);
+ multitap2 = padd.portMultitap;
+
return 0;
}