gpu_neon: warning fix
[pcsx_rearmed.git] / frontend / plugin_lib.h
CommitLineData
b60f2812 1
69af03a2 2enum {
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 20extern int in_type1, in_type2;
21extern int in_keystate, in_state_gun, in_a1[2], in_a2[2];
1b0c5139 22extern int in_adev[2], in_adev_axis[2][2];
b944a30e 23extern int in_enable_vibration;
69af03a2 24
76f7048e 25extern void *pl_vout_buf;
55b0eeea 26extern int pl_flip_cnt;
69af03a2 27
29a8c4f3 28void pl_text_out16(int x, int y, const char *texto, ...);
29void pl_start_watchdog(void);
30void *pl_prepare_screenshot(int *w, int *h, int *bpp);
4c08b9e7 31void pl_init(void);
41f55c9f 32void pl_print_hud(int w, int h, int xborder);
4c08b9e7 33
76f7048e 34void pl_timing_prepare(int is_pal);
35void pl_frame_limit(void);
36
4c08b9e7 37void pl_update_gun(int *xn, int *xres, int *y, int *in);
201c21e2 38
39struct rearmed_cbs {
ffd0d743 40 void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
76f7048e 41 int (*pl_vout_open)(void);
42 void *(*pl_vout_set_mode)(int w, int h, int bpp);
43 void *(*pl_vout_flip)(void);
44 void (*pl_vout_close)(void);
55b0eeea 45 // these are only used by some frontends
46 void (*pl_vout_raw_flip)(int x, int y);
47 void (*pl_vout_set_raw_vram)(void *vram);
e64dc4c5 48 // gpu options
49 int frameskip;
50 int fskip_advice;
3ece2f0c 51 unsigned int *gpu_frame_count;
24de2dd4 52 unsigned int *gpu_hcnt;
e64dc4c5 53 struct {
54 int iUseDither;
55 int dwActFixes;
56 float fFrameRateHz;
57 int dwFrameRateTicks;
58 } gpu_peops;
17a54a4a 59 struct {
60 int abe_hack;
61 int no_light, no_blend;
89c0de42 62 int lineskip;
17a54a4a 63 } gpu_unai;
5440b88e 64 struct {
65 int allow_interlace; // 0 off, 1 on, 2 guess
66 } gpu_neon;
201c21e2 67};
68
e64dc4c5 69extern struct rearmed_cbs pl_rearmed_cbs;
4f3639fa 70
71#ifndef ARRAY_SIZE
72#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
73#endif