| 1 | #ifndef __P_MAIN_H__ |
| 2 | #define __P_MAIN_H__ |
| 3 | |
| 4 | #include "psemu_plugin_defs.h" |
| 5 | #include "externals.h" |
| 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 | |
| 19 | /* get button state and pad type from main emu */ |
| 20 | extern long (*PAD1_readPort1)(PadDataS *pad); |
| 21 | extern long (*PAD2_readPort2)(PadDataS *pad); |
| 22 | |
| 23 | #endif /* __P_MAIN_H__ */ |