X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fgp2x%2Finput.c;h=daadc34a3af0df47c2c815154ce88b8f79dab7cb;hb=21afaa365c97896da6ccbdd6540e20f2d2bb4990;hp=cc8132bf4383ec6eff13de621fe54e2230443b9a;hpb=e328100eecae3adfce1c3b57364bee5d166217ef;p=fceu.git diff --git a/drivers/gp2x/input.c b/drivers/gp2x/input.c index cc8132b..daadc34 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); } } @@ -114,7 +117,7 @@ static void do_emu_acts(uint32 acts) #define down(b) (keys & GP2X_##b) static void do_fake_mouse(unsigned long keys) { - static int x=0, y=0; + static int x=256/2, y=240/2; int speed = 3; if (down(A)) speed = 1;