1 #include "../../libpcsxcore/psemu_plugin_defs.h"
3 extern unsigned char CurPad, CurByte, CurCmd, CmdLen;
6 unsigned char PADpoll_pad(unsigned char value);
7 unsigned char PADstartPoll_pad(int pad);
11 unsigned char PADpoll_guncon(unsigned char value);
12 unsigned char PADstartPoll_guncon(int pad);
13 void guncon_init(void);
15 void dfinput_activate(void);
17 /* get button state and pad type from main emu */
18 extern long (*PAD1_readPort1)(PadDataS *pad);
19 extern long (*PAD2_readPort2)(PadDataS *pad);
21 /* get gunstate from emu frontend, x range 0-1023 */
22 #define GUNIN_TRIGGER (1<<0)
23 #define GUNIN_BTNA (1<<1)
24 #define GUNIN_BTNB (1<<2)
25 #define GUNIN_TRIGGER2 (1<<3) /* offscreen trigger */
26 extern void pl_update_gun(int *xn, int *xres, int *y, int *in);
28 /* vibration trigger to frontend */
29 extern int in_enable_vibration;
30 extern void plat_trigger_vibrate(int is_strong);