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

@@ -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)