mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 15:18:05 -04:00
initial psp code, functional menu
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@274 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
e86e20be70
commit
2951214ea6
15 changed files with 2135 additions and 5 deletions
32
psp/psp.h
Normal file
32
psp/psp.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#include <pspctrl.h>
|
||||
|
||||
void psp_init(void);
|
||||
void psp_finish(void);
|
||||
|
||||
void psp_msleep(int ms);
|
||||
|
||||
#define PSP_VRAM_BASE0 ((void *) 0x44000000)
|
||||
#define PSP_VRAM_BASE1 ((void *) 0x44044000)
|
||||
|
||||
void psp_video_switch_to_single(void);
|
||||
void psp_video_flip(void);
|
||||
extern void *psp_screen;
|
||||
|
||||
unsigned int psp_pad_read(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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue