4c08b9e7 |
1 | #include "../../libpcsxcore/psemu_plugin_defs.h" |
2 | |
3 | extern unsigned char CurPad, CurByte, CurCmd, CmdLen; |
4 | |
5 | /* analog pad */ |
6 | unsigned char PADpoll_pad(unsigned char value); |
7 | unsigned char PADstartPoll_pad(int pad); |
8 | void pad_init(void); |
9 | |
10 | /* GunCon */ |
11 | unsigned char PADpoll_guncon(unsigned char value); |
12 | unsigned char PADstartPoll_guncon(int pad); |
13 | void guncon_init(void); |
14 | |
15 | void dfinput_activate(void); |
16 | |
17 | /* get button state and pad type from main emu */ |
18 | extern long (*PAD1_readPort1)(PadDataS *pad); |
19 | extern 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 */ |
26 | extern void pl_update_gun(int *xn, int *xres, int *y, int *in); |