X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fgp2x.h;h=9a72eae0ce8ad652fe5581ae64679fbf2e7e0d3e;hb=6a298de4811066eb3cd2fadfd78970281ed30074;hp=a801485d465bb554463b6fd36404232151a5e005;hpb=638cc6264cf3e8d1f046885fb68b5a1e22729d06;p=gpsp.git diff --git a/gp2x/gp2x.h b/gp2x/gp2x.h index a801485..9a72eae 100644 --- a/gp2x/gp2x.h +++ b/gp2x/gp2x.h @@ -1,16 +1,14 @@ #ifndef GP2X_H #define GP2X_H -#include "warm.h" - enum { GP2X_UP = 1 << 0, 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, @@ -21,16 +19,28 @@ 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, 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(); @@ -43,5 +53,10 @@ void upscale_aspect(u16 *dst, u16 *src); extern void *gpsp_gp2x_screen; void fb_use_buffers(int count); void pollux_video_flip(); +void wiz_lcd_set_portrait(int y); +u32 wiz_load_gamepak(char *name); + +void do_rotated_blit(void *dst, void *linesx4, u32 y); +void upscale_aspect_row(void *dst, void *linesx3, u32 row); #endif