20 extern int in_type1, in_type2;
21 extern int in_keystate, in_state_gun, in_a1[2], in_a2[2];
22 void in_update_analogs(void);
24 extern void *pl_vout_buf;
25 extern int pl_flip_cnt;
27 void pl_text_out16(int x, int y, const char *texto, ...);
28 void pl_start_watchdog(void);
29 void *pl_prepare_screenshot(int *w, int *h, int *bpp);
31 void pl_print_hud(int w, int h, int xborder);
33 void pl_timing_prepare(int is_pal);
34 void pl_frame_limit(void);
36 void pl_update_gun(int *xn, int *xres, int *y, int *in);
39 void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
40 int (*pl_vout_open)(void);
41 void *(*pl_vout_set_mode)(int w, int h, int bpp);
42 void *(*pl_vout_flip)(void);
43 void (*pl_vout_close)(void);
44 // these are only used by some frontends
45 void (*pl_vout_raw_flip)(int x, int y);
46 void (*pl_vout_set_raw_vram)(void *vram);
58 int no_light, no_blend;
62 extern struct rearmed_cbs pl_rearmed_cbs;
65 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))