908e426c |
1 | #ifndef __P_MAIN_H__ |
2 | #define __P_MAIN_H__ |
3 | |
da710571 |
4 | #include "psemu_plugin_defs.h" |
e4c83ca6 |
5 | #include "externals.h" |
4c08b9e7 |
6 | |
7 | extern unsigned char CurPad, CurByte, CurCmd, CmdLen; |
8 | |
9 | /* analog pad */ |
10 | unsigned char PADpoll_pad(unsigned char value); |
11 | unsigned char PADstartPoll_pad(int pad); |
12 | void pad_init(void); |
13 | |
14 | /* GunCon */ |
15 | unsigned char PADpoll_guncon(unsigned char value); |
16 | unsigned char PADstartPoll_guncon(int pad); |
17 | void guncon_init(void); |
18 | |
4c08b9e7 |
19 | /* get button state and pad type from main emu */ |
20 | extern long (*PAD1_readPort1)(PadDataS *pad); |
21 | extern long (*PAD2_readPort2)(PadDataS *pad); |
908e426c |
22 | |
23 | #endif /* __P_MAIN_H__ */ |