Proper fix for VS Unisystem input not working with some games.

This commit is contained in:
retro-wertz
2017-09-30 12:00:33 +08:00
parent c645949592
commit c4c67b4b08
2 changed files with 3 additions and 8 deletions

View File

@@ -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);
if (t[0] == RETRO_DEVICE_MOUSE || t[1] == RETRO_DEVICE_MOUSE)

View File

@@ -199,11 +199,6 @@ static void FP_FASTAPASS(3) UpdateGP(int w, void *data, int arg) {
if (FCEUnetplay) NetplayUpdate(joy);
#endif
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) {
@@ -231,6 +226,9 @@ void FCEU_UpdateInput(void)
if (GameInfo && GameInfo->type == GIT_VSUNI)
if (coinon) coinon--;
if (GameInfo->type == GIT_VSUNI) /* moved to libretro.c */
FCEU_VSUniSwap(&joy[0], &joy[1]);
}
static DECLFR(VSUNIRead0)