Proper fix for VS Unisystem input not working with some games.
This commit is contained in:
@@ -1178,9 +1178,6 @@ static void FCEUD_UpdateInput(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameInfo->type == GIT_VSUNI)
|
|
||||||
FCEU_VSUniSwap(&pad[0], &pad[1]);
|
|
||||||
|
|
||||||
JSReturn[0] = pad[0] | (pad[1] << 8) | (pad[2] << 16) | (pad[3] << 24);
|
JSReturn[0] = pad[0] | (pad[1] << 8) | (pad[2] << 16) | (pad[3] << 24);
|
||||||
|
|
||||||
if (t[0] == RETRO_DEVICE_MOUSE || t[1] == RETRO_DEVICE_MOUSE)
|
if (t[0] == RETRO_DEVICE_MOUSE || t[1] == RETRO_DEVICE_MOUSE)
|
||||||
|
|||||||
@@ -199,11 +199,6 @@ static void FP_FASTAPASS(3) UpdateGP(int w, void *data, int arg) {
|
|||||||
if (FCEUnetplay) NetplayUpdate(joy);
|
if (FCEUnetplay) NetplayUpdate(joy);
|
||||||
#endif
|
#endif
|
||||||
FCEUMOV_AddJoy(joy);
|
FCEUMOV_AddJoy(joy);
|
||||||
#ifdef __LIBRETRO__
|
|
||||||
#else
|
|
||||||
if (GameInfo->type == GIT_VSUNI) /* moved to libretro.c */
|
|
||||||
FCEU_VSUniSwap(&joy[0], &joy[1]);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FP_FASTAPASS(1) StrobeGP(int w) {
|
static void FP_FASTAPASS(1) StrobeGP(int w) {
|
||||||
@@ -231,6 +226,9 @@ void FCEU_UpdateInput(void)
|
|||||||
|
|
||||||
if (GameInfo && GameInfo->type == GIT_VSUNI)
|
if (GameInfo && GameInfo->type == GIT_VSUNI)
|
||||||
if (coinon) coinon--;
|
if (coinon) coinon--;
|
||||||
|
|
||||||
|
if (GameInfo->type == GIT_VSUNI) /* moved to libretro.c */
|
||||||
|
FCEU_VSUniSwap(&joy[0], &joy[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DECLFR(VSUNIRead0)
|
static DECLFR(VSUNIRead0)
|
||||||
|
|||||||
Reference in New Issue
Block a user