X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fgp2x.h;h=9a72eae0ce8ad652fe5581ae64679fbf2e7e0d3e;hb=refs%2Fheads%2Fmaster;hp=9218704d21867ad029460b18f159f5caafb1145d;hpb=43c24b301dc8c0c5952e1d22bad865f4304d01f8;p=gpsp.git diff --git a/gp2x/gp2x.h b/gp2x/gp2x.h index 9218704..9a72eae 100644 --- a/gp2x/gp2x.h +++ b/gp2x/gp2x.h @@ -7,8 +7,8 @@ enum GP2X_LEFT = 1 << 2, GP2X_DOWN = 1 << 4, GP2X_RIGHT = 1 << 6, - GP2X_START = 1 << 8, - GP2X_SELECT = 1 << 9, + GP2X_START = 1 << 8, // Wiz: Menu, Caanoo: I + GP2X_SELECT = 1 << 9, // Caanoo: II GP2X_L = 1 << 10, GP2X_R = 1 << 11, GP2X_A = 1 << 12, @@ -19,6 +19,11 @@ enum GP2X_VOL_UP = 1 << 16, GP2X_VOL_DOWN = 1 << 17, GP2X_PUSH = 1 << 18, +#elif defined(POLLUX_BUILD) + GP2X_HOME = 1 << 16, + GP2X_PUSH = 1 << 17, + GP2X_VOL_UP = 1 << 30, // dummy + GP2X_VOL_DOWN = 1 << 29, #else GP2X_VOL_DOWN = 1 << 22, GP2X_VOL_UP = 1 << 23, @@ -33,7 +38,9 @@ void gpsp_plat_quit(void); u32 gpsp_plat_joystick_read(void); u32 gpsp_plat_buttons_to_cursor(u32 buttons); -extern u32 button_plat_mask_to_config[]; +#define PLAT_BUTTON_COUNT 16 +#define PLAT_MENU_BUTTON 15 +extern u32 button_plat_mask_to_config[PLAT_BUTTON_COUNT]; void gp2x_sound_volume(u32 volume_up); void gp2x_quit();