psp port runs, bad colors
[libpicofe.git] / psp / psp.h
1 #include <pspctrl.h>
2
3 void psp_init(void);
4 void psp_finish(void);
5
6 void psp_msleep(int ms);
7
8 #define PSP_VRAM_BASE0 ((void *) 0x44000000)
9 #define PSP_VRAM_BASE1 ((void *) 0x44044000)
10
11 void *psp_video_get_active_fb(void);
12 void  psp_video_switch_to_single(void);
13 void  psp_video_flip(int wait_vsync);
14 extern void *psp_screen;
15
16 unsigned int psp_pad_read(int blocking);
17
18
19 /* shorter btn names */
20 #define BTN_UP       PSP_CTRL_UP
21 #define BTN_LEFT     PSP_CTRL_LEFT
22 #define BTN_RIGHT    PSP_CTRL_RIGHT
23 #define BTN_DOWN     PSP_CTRL_DOWN
24 #define BTN_L        PSP_CTRL_LTRIGGER
25 #define BTN_R        PSP_CTRL_RTRIGGER
26 #define BTN_TRIANGLE PSP_CTRL_TRIANGLE
27 #define BTN_CIRCLE   PSP_CTRL_CIRCLE
28 #define BTN_X        PSP_CTRL_CROSS
29 #define BTN_SQUARE   PSP_CTRL_SQUARE
30 #define BTN_SELECT   PSP_CTRL_SELECT
31 #define BTN_START    PSP_CTRL_START
32 #define BTN_NOTE     PSP_CTRL_NOTE
33