aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfinput/main.h
blob: 96cebfac47570836fa2f18625a88ea4aeabd564b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __P_MAIN_H__
#define __P_MAIN_H__

#include "psemu_plugin_defs.h"
#include "externals.h"

extern unsigned char CurPad, CurByte, CurCmd, CmdLen;

/* analog pad */
unsigned char PADpoll_pad(unsigned char value);
unsigned char PADstartPoll_pad(int pad);
void pad_init(void);

/* GunCon */
unsigned char PADpoll_guncon(unsigned char value);
unsigned char PADstartPoll_guncon(int pad);
void guncon_init(void);

/* get button state and pad type from main emu */
extern long (*PAD1_readPort1)(PadDataS *pad);
extern long (*PAD2_readPort2)(PadDataS *pad);

#endif /* __P_MAIN_H__ */