X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Finput.h;h=cf7a09910d46d5c75f4ae442f939f9de5505eef6;hb=d34a42f93fdb8e0dc66875a08571cae2135b14cf;hp=bcd94a5134f5ae3bf48dc96e04cee0d9f850c91c;hpb=9025b93159042e856af2fb1a1e7e5017f9fee99c;p=picodrive.git diff --git a/platform/common/input.h b/platform/common/input.h index bcd94a5..cf7a099 100644 --- a/platform/common/input.h +++ b/platform/common/input.h @@ -1,5 +1,45 @@ #define IN_MAX_DEVS 10 +/* unified menu keys */ +#define PBTN_UP (1 << 0) +#define PBTN_DOWN (1 << 1) +#define PBTN_LEFT (1 << 2) +#define PBTN_RIGHT (1 << 3) + +#define PBTN_MOK (1 << 4) +#define PBTN_MBACK (1 << 5) +#define PBTN_MA2 (1 << 6) /* menu action 2 */ +#define PBTN_MA3 (1 << 7) + +#define PBTN_L (1 << 8) +#define PBTN_R (1 << 9) + +#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,