X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fgp2x.h;h=2e6b8eb716125aa0e1452e9999c8955ed8530c7e;hb=0dfe793b682b16d1d3f3d1973a9498adb0304b0f;hp=85cdac8a4b3430aa1b6d21f26da681a9ae26b32c;hpb=42c8119010bfc48776e8c82e42cceb06d07c0247;p=gpsp.git diff --git a/gp2x/gp2x.h b/gp2x/gp2x.h index 85cdac8..2e6b8eb 100644 --- a/gp2x/gp2x.h +++ b/gp2x/gp2x.h @@ -1,8 +1,6 @@ #ifndef GP2X_H #define GP2X_H -#include "warm.h" - enum { GP2X_UP = 1 << 0, @@ -26,11 +24,18 @@ 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); + +u32 gpsp_plat_joystick_read(void); +u32 gpsp_plat_buttons_to_cursor(u32 buttons); -extern u32 gpsp_gp2x_dev_audio; -extern u32 gpsp_gp2x_dev; +#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();