b60f2812 |
1 | |
69af03a2 |
2 | extern int keystate; |
3 | enum { |
4 | DKEY_SELECT = 0, |
5 | DKEY_L3, |
6 | DKEY_R3, |
7 | DKEY_START, |
8 | DKEY_UP, |
9 | DKEY_RIGHT, |
10 | DKEY_DOWN, |
11 | DKEY_LEFT, |
12 | DKEY_L2, |
13 | DKEY_R2, |
14 | DKEY_L1, |
15 | DKEY_R1, |
16 | DKEY_TRIANGLE, |
17 | DKEY_CIRCLE, |
18 | DKEY_CROSS, |
19 | DKEY_SQUARE, |
20 | }; |
21 | |
b60f2812 |
22 | extern void *pl_fbdev_buf; |
23 | |
6d1a1ac2 |
24 | int pl_fbdev_open(void); |
b60f2812 |
25 | int pl_fbdev_set_mode(int w, int h, int bpp); |
ffd0d743 |
26 | void *pl_fbdev_flip(void); |
6d1a1ac2 |
27 | void pl_fbdev_close(void); |
69af03a2 |
28 | |
201c21e2 |
29 | void pl_text_out16(int x, int y, const char *texto, ...); |
30 | |
31 | struct rearmed_cbs { |
ffd0d743 |
32 | void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h); |
33 | int (*pl_fbdev_open)(void); |
34 | int (*pl_fbdev_set_mode)(int w, int h, int bpp); |
35 | void *(*pl_fbdev_flip)(void); |
36 | void (*pl_fbdev_close)(void); |
201c21e2 |
37 | }; |
38 | |
39 | extern const struct rearmed_cbs pl_rearmed_cbs; |
4f3639fa |
40 | |
41 | #ifndef ARRAY_SIZE |
42 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) |
43 | #endif |