use picofe menu, move generic code out of gp2x/
[fceu.git] / input.c
diff --git a/input.c b/input.c
index ba07072..b625583 100644 (file)
--- a/input.c
+++ b/input.c
@@ -46,8 +46,6 @@ static uint8 joy_readbit[2];
 static uint8 joy[4]={0,0,0,0};
 static uint8 LastStrobe;
 
-extern int coinon;
-
 static int FSDisable=0;        /* Set to 1 if NES-style four-player adapter is disabled. */
 static int JPAttrib[2]={0,0};
 static int JPType[2]={0,0};
@@ -119,7 +117,7 @@ static DECLFR(JPRead)
          ret=FCExp->Read(A&1,ret);
 
        ret|=X.DB&0xC0;
-       dprintf("JPRead %02x", ret);
+       dprintf("JPRead %i %02x", A&1, ret);
        return(ret);
 }
 
@@ -350,6 +348,7 @@ void FCEUI_SetInputFC(int type, void *ptr, int attrib)
 
 void FCEU_DoSimpleCommand(int cmd)
 {
+   printf("FCEU_DoSimpleCommand: %i\n", cmd);
  switch(cmd)
  {
    case FCEUNPCMD_FDSINSERT: FCEU_FDSInsert();break;