detect undefined symbols early
[pcsx_rearmed.git] / plugins / dfinput / main.h
CommitLineData
4c08b9e7 1#include "../../libpcsxcore/psemu_plugin_defs.h"
2
3extern unsigned char CurPad, CurByte, CurCmd, CmdLen;
4
5/* analog pad */
6unsigned char PADpoll_pad(unsigned char value);
7unsigned char PADstartPoll_pad(int pad);
8void pad_init(void);
9
10/* GunCon */
11unsigned char PADpoll_guncon(unsigned char value);
12unsigned char PADstartPoll_guncon(int pad);
13void guncon_init(void);
14
15void dfinput_activate(void);
16
17/* get button state and pad type from main emu */
18extern long (*PAD1_readPort1)(PadDataS *pad);
19extern long (*PAD2_readPort2)(PadDataS *pad);
20
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 */
26extern void pl_update_gun(int *xn, int *xres, int *y, int *in);
b944a30e 27
28/* vibration trigger to frontend */
29extern int in_enable_vibration;
3a40ff14 30extern void plat_trigger_vibrate(int is_strong);