e5f426aa |
1 | extern void *giz_screen; |
2 | |
3 | void giz_init(); |
4 | void giz_deinit(void); |
84100c0f |
5 | void lprintf(const char *fmt, ...); |
e5f426aa |
6 | |
84100c0f |
7 | void *directfb_lock(int unused); |
8 | void directfb_unlock(void); |
9 | void directfb_flip(void); |
10 | |
11 | #if 1 |
12 | #define fb_lock Framework2D_LockBuffer |
13 | #define fb_unlock Framework2D_UnlockBuffer |
14 | #define fb_flip Framework2D_Flip |
15 | #else |
16 | #define fb_lock directfb_lock |
17 | #define fb_unlock directfb_unlock |
18 | #define fb_flip directfb_flip |
19 | #endif |
20 | |
21 | #ifndef _FRAMEWORK_H |
22 | // bah, some copy-pasta |
23 | enum FRAMEWORK_BUTTONTYPES |
24 | { |
25 | FRAMEWORK_BUTTON_DPAD_LEFT = 0, |
26 | FRAMEWORK_BUTTON_DPAD_RIGHT, |
27 | FRAMEWORK_BUTTON_DPAD_UP, |
28 | FRAMEWORK_BUTTON_DPAD_DOWN, |
29 | FRAMEWORK_BUTTON_STOP, |
30 | FRAMEWORK_BUTTON_PLAY, |
31 | FRAMEWORK_BUTTON_FORWARD, |
32 | FRAMEWORK_BUTTON_REWIND, |
33 | FRAMEWORK_BUTTON_LEFT_SHOULDER, |
34 | FRAMEWORK_BUTTON_RIGHT_SHOULDER, |
35 | FRAMEWORK_BUTTON_HOME, |
36 | FRAMEWORK_BUTTON_VOLUME, |
37 | FRAMEWORK_BUTTON_BRIGHTNESS, |
38 | FRAMEWORK_BUTTON_ALARM, |
39 | FRAMEWORK_BUTTON_POWER, |
40 | |
41 | FRAMEWORK_BUTTON_COUNT |
42 | |
43 | }; |
44 | #endif |
e5f426aa |
45 | |
e5ab6faf |
46 | #define PBTN_LEFT (1 << FRAMEWORK_BUTTON_DPAD_LEFT) |
47 | #define PBTN_RIGHT (1 << FRAMEWORK_BUTTON_DPAD_RIGHT) |
48 | #define PBTN_UP (1 << FRAMEWORK_BUTTON_DPAD_UP) |
49 | #define PBTN_DOWN (1 << FRAMEWORK_BUTTON_DPAD_DOWN) |
50 | #define PBTN_STOP (1 << FRAMEWORK_BUTTON_STOP) |
51 | #define PBTN_PLAY (1 << FRAMEWORK_BUTTON_PLAY) |
52 | #define PBTN_FWD (1 << FRAMEWORK_BUTTON_FORWARD) |
53 | #define PBTN_REW (1 << FRAMEWORK_BUTTON_REWIND) |
54 | #define PBTN_L (1 << FRAMEWORK_BUTTON_LEFT_SHOULDER) |
55 | #define PBTN_R (1 << FRAMEWORK_BUTTON_RIGHT_SHOULDER) |
56 | |
57 | #define PBTN_HOME (1 << FRAMEWORK_BUTTON_HOME) |
58 | #define PBTN_VOLUME (1 << FRAMEWORK_BUTTON_VOLUME) |
59 | #define PBTN_BRIGHTNESS (1 << FRAMEWORK_BUTTON_BRIGHTNESS) |
60 | #define PBTN_ALARM (1 << FRAMEWORK_BUTTON_ALARM) |
61 | #define PBTN_POWER (1 << FRAMEWORK_BUTTON_POWER) |
e5f426aa |
62 | |