X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fpsp.h;h=ef12f5928d9d2e0601fed31f34e70402efaf0a8c;hb=a33164fffe6463cd0aa698fac2bcc1fc213af18e;hp=8a2828e37b9549492f26651e600da7e2086d3351;hpb=6f748c477fca1c4962358f163fa19e3b5710bc33;p=libpicofe.git diff --git a/psp/psp.h b/psp/psp.h index 8a2828e..ef12f59 100644 --- a/psp/psp.h +++ b/psp/psp.h @@ -1,3 +1,8 @@ +// (c) Copyright 2007 notaz, All rights reserved. +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + #include void psp_init(void); @@ -25,6 +30,7 @@ void psp_msleep(int ms); #define GU_CMDLIST_SIZE (16*1024) extern unsigned int guCmdList[GU_CMDLIST_SIZE]; +extern int psp_unhandled_suspend; void *psp_video_get_active_fb(void); void psp_video_switch_to_single(void); @@ -36,18 +42,29 @@ unsigned int psp_pad_read(int blocking); int psp_get_cpu_clock(void); int psp_set_cpu_clock(int clock); +char *psp_get_status_line(void); + +void psp_wait_suspend(void); +void psp_resume_suspend(void); + /* shorter btn names */ -#define BTN_UP PSP_CTRL_UP -#define BTN_LEFT PSP_CTRL_LEFT -#define BTN_RIGHT PSP_CTRL_RIGHT -#define BTN_DOWN PSP_CTRL_DOWN -#define BTN_L PSP_CTRL_LTRIGGER -#define BTN_R PSP_CTRL_RTRIGGER -#define BTN_TRIANGLE PSP_CTRL_TRIANGLE -#define BTN_CIRCLE PSP_CTRL_CIRCLE -#define BTN_X PSP_CTRL_CROSS -#define BTN_SQUARE PSP_CTRL_SQUARE -#define BTN_SELECT PSP_CTRL_SELECT -#define BTN_START PSP_CTRL_START -#define BTN_NOTE PSP_CTRL_NOTE // doesn't seem to work? +#define PBTN_UP PSP_CTRL_UP +#define PBTN_LEFT PSP_CTRL_LEFT +#define PBTN_RIGHT PSP_CTRL_RIGHT +#define PBTN_DOWN PSP_CTRL_DOWN +#define PBTN_L PSP_CTRL_LTRIGGER +#define PBTN_R PSP_CTRL_RTRIGGER +#define PBTN_TRIANGLE PSP_CTRL_TRIANGLE +#define PBTN_CIRCLE PSP_CTRL_CIRCLE +#define PBTN_X PSP_CTRL_CROSS +#define PBTN_SQUARE PSP_CTRL_SQUARE +#define PBTN_SELECT PSP_CTRL_SELECT +#define PBTN_START PSP_CTRL_START +#define PBTN_NOTE PSP_CTRL_NOTE // doesn't seem to work? + +/* fake 'nub' btns */ +#define PBTN_NUB_UP (1 << 28) +#define PBTN_NUB_RIGHT (1 << 29) +#define PBTN_NUB_DOWN (1 << 30) +#define PBTN_NUB_LEFT (1 << 31)