fceu options + support code
[fceu.git] / drivers / gp2x / input.c
index cc8132b..daadc34 100644 (file)
@@ -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;