23#define PAD_LEFT 0x0080
24#define PAD_DOWN 0x0040
25#define PAD_RIGHT 0x0020
27#define PAD_START 0x0008
30#define PAD_SELECT 0x0001
31#define PAD_SQUARE 0x8000
32#define PAD_CROSS 0x4000
33#define PAD_CIRCLE 0x2000
34#define PAD_TRIANGLE 0x1000
43#define PAD_STATE_DISCONN 0x00
44#define PAD_STATE_FINDPAD 0x01
45#define PAD_STATE_FINDCTP1 0x02
46#define PAD_STATE_EXECCMD 0x05
47#define PAD_STATE_STABLE 0x06
48#define PAD_STATE_ERROR 0x07
53#define PAD_RSTAT_COMPLETE 0x00
54#define PAD_RSTAT_FAILED 0x01
55#define PAD_RSTAT_BUSY 0x02
60#define PAD_TYPE_NEJICON 0x2
61#define PAD_TYPE_KONAMIGUN 0x3
62#define PAD_TYPE_DIGITAL 0x4
63#define PAD_TYPE_ANALOG 0x5
64#define PAD_TYPE_NAMCOGUN 0x6
65#define PAD_TYPE_DUALSHOCK 0x7
66#define PAD_TYPE_JOGCON 0xE
67#define PAD_TYPE_EX_TSURICON 0x100
68#define PAD_TYPE_EX_JOGCON 0x300
72#define PAD_MODECURID 1
73#define PAD_MODECUREXID 2
74#define PAD_MODECUROFFS 3
75#define PAD_MODETABLE 4
80#define PAD_MMODE_DIGITAL 0
81#define PAD_MMODE_DUALSHOCK 1
83#define PAD_MMODE_UNLOCK 2
84#define PAD_MMODE_LOCK 3
101 unsigned char rjoy_h;
102 unsigned char rjoy_v;
103 unsigned char ljoy_h;
104 unsigned char ljoy_v;
106 unsigned char right_p;
107 unsigned char left_p;
109 unsigned char down_p;
110 unsigned char triangle_p;
111 unsigned char circle_p;
112 unsigned char cross_p;
113 unsigned char square_p;
118 unsigned char unkn16[12];
193void padStateInt2String(
int state,
char buf[16]);
194void padReqStateInt2String(
int state,
char buf[16]);
214int padInfoMode(
int port,
int slot,
int infoMode,
int index);
236int padGetButtonMask(
int port,
int slot);
237int padSetButtonInfo(
int port,
int slot,
int buttonInfo);
243unsigned char padInfoAct(
int port,
int slot,
int word,
int byte);
int padPortOpen(int port, int slot, void *padArea)
int padPortInit(int mode)
int padSetActAlign(int port, int slot, const char act_align[6])
unsigned char padRead(int port, int slot, struct padButtonStatus *data)
int padInfoMode(int port, int slot, int infoMode, int index)
int padExitPressMode(int port, int slot)
int padSetActDirect(int port, int slot, char act_align[6])
int padGetConnection(int port, int slot)
int padSetReqState(int port, int slot, int state)
int padPortClose(int port, int slot)
int padGetState(int port, int slot)
unsigned char padInfoAct(int port, int slot, int word, int byte)
unsigned char padGetReqState(int port, int slot)
int padInfoPressMode(int port, int slot)
int padSetMainMode(int port, int slot, int mode, int lock)
int padEnterPressMode(int port, int slot)
int padGetSlotMax(int port)