X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fgp2x%2Finput.c;h=99a08676e7090310ed9d89219def3995f6fbb19b;hb=c4980f9edd806014286d57aee1cbe5e73b803e46;hp=cc8132bf4383ec6eff13de621fe54e2230443b9a;hpb=e328100eecae3adfce1c3b57364bee5d166217ef;p=fceu.git diff --git a/drivers/gp2x/input.c b/drivers/gp2x/input.c index cc8132b..99a0867 100644 --- a/drivers/gp2x/input.c +++ b/drivers/gp2x/input.c @@ -98,15 +98,18 @@ static void do_emu_acts(uint32 acts) } else if (acts & (1 << 27)) // FDS insert/eject { - FCEU_DoSimpleCommand(FCEUNPCMD_FDSINSERT); + if(FCEUGameInfo.type == GIT_FDS) + FCEU_DoSimpleCommand(FCEUNPCMD_FDSINSERT); } else if (acts & (1 << 26)) // FDS select { - FCEU_DoSimpleCommand(FCEUNPCMD_FDSSELECT); + if(FCEUGameInfo.type == GIT_FDS) + FCEU_DoSimpleCommand(FCEUNPCMD_FDSSELECT); } else if (acts & (1 << 25)) // VS Unisystem insert coin { - FCEU_DoSimpleCommand(FCEUNPCMD_VSUNICOIN); + if(FCEUGameInfo.type == GIT_VSUNI) + FCEU_DoSimpleCommand(FCEUNPCMD_VSUNICOIN); } }