merge from libretro fork
[pcsx_rearmed.git] / plugins / dfinput / externals.h
1 #ifndef __P_EXTERNALS_H__
2 #define __P_EXTERNALS_H__
3
4 void dfinput_activate(void);
5
6 /* get gunstate from emu frontend,
7  * xn, yn - layer position normalized to 0..1023 */
8 #define GUNIN_TRIGGER   (1<<0)
9 #define GUNIN_BTNA      (1<<1)
10 #define GUNIN_BTNB      (1<<2)
11 #define GUNIN_TRIGGER2  (1<<3)  /* offscreen trigger */
12 extern void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in);
13
14 /* vibration trigger to frontend */
15 extern int in_enable_vibration;
16 extern void plat_trigger_vibrate(int pad, int low, int high);
17
18 #endif /* __P_EXTERNALS_H__ */