X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Finput.h;h=cf7a09910d46d5c75f4ae442f939f9de5505eef6;hb=d34a42f93fdb8e0dc66875a08571cae2135b14cf;hp=14eb303fd1cdac938792f44f1476f3124b0b0b04;hpb=2f64d822117d490e11e9232156174bd313142294;p=picodrive.git diff --git a/platform/common/input.h b/platform/common/input.h index 14eb303..cf7a099 100644 --- a/platform/common/input.h +++ b/platform/common/input.h @@ -16,6 +16,30 @@ #define PBTN_MENU (1 << 10) +/* ui events */ +#define PEVB_VOL_DOWN 30 +#define PEVB_VOL_UP 29 +#define PEVB_STATE_LOAD 28 +#define PEVB_STATE_SAVE 27 +#define PEVB_SWITCH_RND 26 +#define PEVB_SSLOT_PREV 25 +#define PEVB_SSLOT_NEXT 24 +#define PEVB_MENU 23 +#define PEVB_FF 22 + +#define PEV_VOL_DOWN (1 << PEVB_VOL_DOWN) +#define PEV_VOL_UP (1 << PEVB_VOL_UP) +#define PEV_STATE_LOAD (1 << PEVB_STATE_LOAD) +#define PEV_STATE_SAVE (1 << PEVB_STATE_SAVE) +#define PEV_SWITCH_RND (1 << PEVB_SWITCH_RND) +#define PEV_SSLOT_PREV (1 << PEVB_SSLOT_PREV) +#define PEV_SSLOT_NEXT (1 << PEVB_SSLOT_NEXT) +#define PEV_MENU (1 << PEVB_MENU) +#define PEV_FF (1 << PEVB_FF) + +#define PEV_MASK 0x7fc00000 + + enum { IN_DRVID_UNKNOWN = 0, IN_DRVID_GP2X,