notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
work on 'vblank on line start' problem, var changes, mask defines
[libpicofe.git]
/
psp
/
psp.h
diff --git
a/psp/psp.h
b/psp/psp.h
index
8a2828e
..
7269863
100644
(file)
--- 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 <pspctrl.h>
void psp_init(void);
#include <pspctrl.h>
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];
#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);
void *psp_video_get_active_fb(void);
void psp_video_switch_to_single(void);
@@
-36,6
+42,11
@@
unsigned int psp_pad_read(int blocking);
int psp_get_cpu_clock(void);
int psp_set_cpu_clock(int clock);
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
/* shorter btn names */
#define BTN_UP PSP_CTRL_UP
#define BTN_LEFT PSP_CTRL_LEFT
@@
-51,3
+62,9
@@
int psp_set_cpu_clock(int clock);
#define BTN_START PSP_CTRL_START
#define BTN_NOTE PSP_CTRL_NOTE // doesn't seem to work?
#define BTN_START PSP_CTRL_START
#define BTN_NOTE PSP_CTRL_NOTE // doesn't seem to work?
+/* fake 'nub' btns */
+#define BTN_NUB_UP (1 << 28)
+#define BTN_NUB_RIGHT (1 << 29)
+#define BTN_NUB_DOWN (1 << 30)
+#define BTN_NUB_LEFT (1 << 31)
+