X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gp2x%2Fgp2x.h;h=97b8d3ca73542651ee45d40b85f332a31578ce36;hb=4b1350926e1b426ff2f83f08c579e1a819e9358c;hp=ab8dd4c6ebfc3fe351359da56ca17f0673fd22cc;hpb=c21718e922f16bc7a459960b90e26634b8f2e33b;p=gpsp.git diff --git a/gp2x/gp2x.h b/gp2x/gp2x.h index ab8dd4c..97b8d3c 100644 --- a/gp2x/gp2x.h +++ b/gp2x/gp2x.h @@ -24,11 +24,17 @@ enum GP2X_VOL_UP = 1 << 23, GP2X_PUSH = 1 << 27, #endif + GP2X_VOL_MIDDLE = (1 << 24), // fake, menu enter }; +void gpsp_plat_init(void); +void gpsp_plat_quit(void); -extern u32 gpsp_gp2x_dev_audio; -extern u32 gpsp_gp2x_dev; +u32 gpsp_plat_joystick_read(void); +u32 gpsp_plat_buttons_to_cursor(u32 buttons); + +#define PLAT_BUTTON_COUNT 16 +extern u32 button_plat_mask_to_config[PLAT_BUTTON_COUNT]; void gp2x_sound_volume(u32 volume_up); void gp2x_quit();