X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fcommon.h;h=d641c38ace77c9a824ce372bd1ad38ddceea5b7b;hb=13b692eb4ee66fd0c7d4d45bdead750a4defa90e;hp=fc657b355d7bbca824327498c4741be7e7a9320c;hpb=7f022a8d573295d721fd6a517c8f1fe04480a8f0;p=libpicofe.git diff --git a/common/common.h b/common/common.h index fc657b3..d641c38 100644 --- a/common/common.h +++ b/common/common.h @@ -3,6 +3,25 @@ #ifdef __GP2X__ #include "../gp2x/gp2x.h" +// TODO merge +#define PBTN_UP (1 << 0) +#define PBTN_DOWN (1 << 1) +#define PBTN_LEFT (1 << 2) +#define PBTN_RIGHT (1 << 3) + +#define PBTN_NORTH (1 << 4) +#define PBTN_SOUTH (1 << 5) +#define PBTN_WEST (1 << 6) +#define PBTN_EAST (1 << 7) +#define PBTN_L (1 << 8) +#define PBTN_R (1 << 9) + +/* menu nav */ +#define PBTN_MOK PBTN_EAST +#define PBTN_MBACK PBTN_SOUTH +#define PBTN_MENU (1 << 10) + +#if 0 #define PBTN_UP GP2X_UP #define PBTN_DOWN GP2X_DOWN #define PBTN_LEFT GP2X_LEFT @@ -19,6 +38,8 @@ #define PBTN_MOK GP2X_B #define PBTN_MBACK GP2X_X #define PBTN_MENU GP2X_SELECT +#endif +#define GP2X_Y 0 /* FIXME */ void gp2x_pd_clone_buffer2(void); void menu_darken_bg(void *dst, int pixels, int darker);