add guncon support
[pcsx_rearmed.git] / frontend / plugin_lib.h
index 22ab285..759e125 100644 (file)
@@ -1,5 +1,4 @@
 
-extern int keystate;
 enum {
        DKEY_SELECT = 0,
        DKEY_L3,
@@ -18,6 +17,9 @@ enum {
        DKEY_CROSS,
        DKEY_SQUARE,
 };
+extern int in_type1, in_type2;
+extern int in_keystate, in_state_gun, in_a1[2], in_a2[2];
+void in_update_analogs(void);
 
 extern void *pl_fbdev_buf;
 
@@ -26,7 +28,12 @@ void *pl_fbdev_set_mode(int w, int h, int bpp);
 void *pl_fbdev_flip(void);
 void  pl_fbdev_close(void);
 
-void pl_text_out16(int x, int y, const char *texto, ...);
+void  pl_text_out16(int x, int y, const char *texto, ...);
+void  pl_start_watchdog(void);
+void *pl_prepare_screenshot(int *w, int *h, int *bpp);
+void  pl_init(void);
+
+void  pl_update_gun(int *xn, int *xres, int *y, int *in);
 
 struct rearmed_cbs {
        void  (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
@@ -34,10 +41,18 @@ struct rearmed_cbs {
        void *(*pl_fbdev_set_mode)(int w, int h, int bpp);
        void *(*pl_fbdev_flip)(void);
        void  (*pl_fbdev_close)(void);
-       int  *fskip_option;
+       // gpu options
+       int   frameskip;
+       int   fskip_advice;
+       struct {
+               int   iUseDither;
+               int   dwActFixes;
+               float fFrameRateHz;
+               int   dwFrameRateTicks;
+       } gpu_peops;
 };
 
-extern const struct rearmed_cbs pl_rearmed_cbs;
+extern struct rearmed_cbs pl_rearmed_cbs;
 
 extern int pl_frame_interval;