X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_cmn.c;h=f4e20d21f8f43077a5349b9df38c78d2d394d00d;hb=531a8f38839713938a441f9287724e5e72c492c3;hp=2b558c1e7c25e787eceffd0dbdaa8de13d796741;hpb=be7867d8756f15956447d3275382a77a71922feb;p=picodrive.git diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 2b558c1..f4e20d2 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -14,11 +14,10 @@ #define CYCLES_S68K_ASD 241 // pad delay (for 6 button pads) -#define PAD_DELAY \ - if (PicoOpt&POPT_6BTN_PAD) { \ - if(Pico.m.padDelay[0]++ > 25) Pico.m.padTHPhase[0]=0; \ - if(Pico.m.padDelay[1]++ > 25) Pico.m.padTHPhase[1]=0; \ - } +#define PAD_DELAY() { \ + if(Pico.m.padDelay[0]++ > 25) Pico.m.padTHPhase[0]=0; \ + if(Pico.m.padDelay[1]++ > 25) Pico.m.padTHPhase[1]=0; \ +} // CPUS_RUN #ifndef CPUS_RUN @@ -114,7 +113,7 @@ static int PicoFrameHints(void) Pico.video.status|=0x200; } - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif @@ -187,7 +186,7 @@ static int PicoFrameHints(void) Pico.video.status|=0x200; memcpy(PicoPadInt, PicoPad, sizeof(PicoPadInt)); - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif @@ -257,7 +256,7 @@ static int PicoFrameHints(void) pv->v_counter = (pv->v_counter << 1) | 1; pv->v_counter &= 0xff; - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif