// 01 = host events
// 02 = joystick
// 04 = cia buttons
-// 16 = potgo
+// 16 = potgo r/w
// 32 = vsync
+// 128 = potgo write
+// 256 = cia buttons write
int inputdevice_logging = 0;
extern int tablet_log;
int i;
maybe_read_input();
- if (inputdevice_logging & 4) {
+ if (inputdevice_logging & (4 | 256)) {
write_log (_T("BFE001 W: %02X:%02X %x\n"), dra, pra, M68K_GETPC);
}
cap_check ();
cd32_shifter[i]--;
if (cd32_shifter[i] < 0)
cd32_shifter[i] = 0;
- if (inputdevice_logging & 4)
+ if (inputdevice_logging & (4 | 256))
write_log (_T("CD32 %d shift: %d %08x\n"), i, cd32_shifter[i], M68K_GETPC);
}
}
static uae_u16 POTDAT (int joy)
{
uae_u16 v = (pot_dat[joy][1] << 8) | pot_dat[joy][0];
- if (inputdevice_logging & 16)
+ if (inputdevice_logging & (16 | 128))
write_log (_T("POTDAT%d: %04X %08X\n"), joy, v, M68K_GETPC);
return v;
}
{
int i, j;
- if (inputdevice_logging & 16)
+ if (inputdevice_logging & (16 | 128))
write_log (_T("POTGO_W: %04X %08X\n"), v, M68K_GETPC);
#if DONGLE_DEBUG
if (notinrom ())