X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Finput_pico.h;h=c0501d33ff53810ea642492ccb385e57082f4cc8;hb=9db6a54485501b56b0f2f5db4d093c38fe495bda;hp=fbf328abc38870f4ffde24c480039c95c61f5de0;hpb=e743be2070a13d14cae39a55b815b62b0edb6776;p=picodrive.git diff --git a/platform/common/input_pico.h b/platform/common/input_pico.h index fbf328a..c0501d3 100644 --- a/platform/common/input_pico.h +++ b/platform/common/input_pico.h @@ -1,6 +1,20 @@ #ifndef INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c #define INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c 1 +/* gamepad - MXYZ SACB RLDU */ +#define GBTN_UP 0 +#define GBTN_DOWN 1 +#define GBTN_LEFT 2 +#define GBTN_RIGHT 3 +#define GBTN_B 4 +#define GBTN_C 5 +#define GBTN_A 6 +#define GBTN_START 7 +#define GBTN_Z 8 +#define GBTN_Y 9 +#define GBTN_X 10 +#define GBTN_MODE 11 + /* ui events */ #define PEVB_VOL_DOWN 30 #define PEVB_VOL_UP 29 @@ -14,6 +28,7 @@ #define PEVB_PICO_PNEXT 21 #define PEVB_PICO_PPREV 20 #define PEVB_PICO_SWINP 19 +#define PEVB_RESET 18 #define PEV_VOL_DOWN (1 << PEVB_VOL_DOWN) #define PEV_VOL_UP (1 << PEVB_VOL_UP) @@ -27,7 +42,8 @@ #define PEV_PICO_PNEXT (1 << PEVB_PICO_PNEXT) #define PEV_PICO_PPREV (1 << PEVB_PICO_PPREV) #define PEV_PICO_SWINP (1 << PEVB_PICO_SWINP) +#define PEV_RESET (1 << PEVB_RESET) -#define PEV_MASK 0x7ff80000 +#define PEV_MASK 0x7ffc0000 #endif /* INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c */