b60f2812 |
1 | |
69af03a2 |
2 | enum { |
3 | DKEY_SELECT = 0, |
4 | DKEY_L3, |
5 | DKEY_R3, |
6 | DKEY_START, |
7 | DKEY_UP, |
8 | DKEY_RIGHT, |
9 | DKEY_DOWN, |
10 | DKEY_LEFT, |
11 | DKEY_L2, |
12 | DKEY_R2, |
13 | DKEY_L1, |
14 | DKEY_R1, |
15 | DKEY_TRIANGLE, |
16 | DKEY_CIRCLE, |
17 | DKEY_CROSS, |
18 | DKEY_SQUARE, |
19 | }; |
4c08b9e7 |
20 | extern int in_type1, in_type2; |
21 | extern int in_keystate, in_state_gun, in_a1[2], in_a2[2]; |
799b0b87 |
22 | void in_update_analogs(void); |
69af03a2 |
23 | |
b60f2812 |
24 | extern void *pl_fbdev_buf; |
25 | |
6d1a1ac2 |
26 | int pl_fbdev_open(void); |
297b3d63 |
27 | void *pl_fbdev_set_mode(int w, int h, int bpp); |
ffd0d743 |
28 | void *pl_fbdev_flip(void); |
6d1a1ac2 |
29 | void pl_fbdev_close(void); |
69af03a2 |
30 | |
29a8c4f3 |
31 | void pl_text_out16(int x, int y, const char *texto, ...); |
32 | void pl_start_watchdog(void); |
33 | void *pl_prepare_screenshot(int *w, int *h, int *bpp); |
4c08b9e7 |
34 | void pl_init(void); |
35 | |
36 | void pl_update_gun(int *xn, int *xres, int *y, int *in); |
201c21e2 |
37 | |
38 | struct rearmed_cbs { |
ffd0d743 |
39 | void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h); |
40 | int (*pl_fbdev_open)(void); |
297b3d63 |
41 | void *(*pl_fbdev_set_mode)(int w, int h, int bpp); |
ffd0d743 |
42 | void *(*pl_fbdev_flip)(void); |
43 | void (*pl_fbdev_close)(void); |
e64dc4c5 |
44 | // gpu options |
45 | int frameskip; |
46 | int fskip_advice; |
47 | struct { |
48 | int iUseDither; |
49 | int dwActFixes; |
50 | float fFrameRateHz; |
51 | int dwFrameRateTicks; |
52 | } gpu_peops; |
201c21e2 |
53 | }; |
54 | |
e64dc4c5 |
55 | extern struct rearmed_cbs pl_rearmed_cbs; |
4f3639fa |
56 | |
bce6b056 |
57 | extern int pl_frame_interval; |
58 | |
4f3639fa |
59 | #ifndef ARRAY_SIZE |
60 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) |
61 | #endif |