From: notaz Date: Wed, 7 May 2008 18:53:53 +0000 (+0000) Subject: some Pico work X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10925be899433d6506407a1171ef534b652327f;p=libpicofe.git some Pico work git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@442 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/gp2x/emu.c b/gp2x/emu.c index f5b8ce3..e3f1148 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -411,15 +411,15 @@ static void RunEventsPico(unsigned int events, unsigned int gp2x_keys) gettimeofday(¬iceMsgTime, 0); } if (events & (1 << 4)) { - PicoPicoPage--; - if (PicoPicoPage < 0) PicoPicoPage = 0; - sprintf(noticeMsg, "Page %i ", PicoPicoPage); + PicoPicohw.page--; + if (PicoPicohw.page < 0) PicoPicohw.page = 0; + sprintf(noticeMsg, "Page %i ", PicoPicohw.page); gettimeofday(¬iceMsgTime, 0); } if (events & (1 << 5)) { - PicoPicoPage++; - if (PicoPicoPage > 6) PicoPicoPage = 6; - sprintf(noticeMsg, "Page %i ", PicoPicoPage); + PicoPicohw.page++; + if (PicoPicohw.page > 6) PicoPicohw.page = 6; + sprintf(noticeMsg, "Page %i ", PicoPicohw.page); gettimeofday(¬iceMsgTime, 0); } if (pico_inp_mode != 0) { @@ -428,8 +428,8 @@ static void RunEventsPico(unsigned int events, unsigned int gp2x_keys) if (gp2x_keys & GP2X_DOWN) { pico_pen_y++; if (pico_pen_y > 251) pico_pen_y = 251; } if (gp2x_keys & GP2X_LEFT) { pico_pen_x--; if (pico_pen_x < 0) pico_pen_x = 0; } if (gp2x_keys & GP2X_RIGHT){ pico_pen_x++; if (pico_pen_x > 353) pico_pen_x = 353; } - PicoPicoPenPos[0] = 0x03c + pico_pen_x; - PicoPicoPenPos[1] = pico_inp_mode == 1 ? (0x2f8 + pico_pen_y) : (0x1fc + pico_pen_y); + PicoPicohw.pen_pos[0] = 0x03c + pico_pen_x; + PicoPicohw.pen_pos[1] = pico_inp_mode == 1 ? (0x2f8 + pico_pen_y) : (0x1fc + pico_pen_y); } }