14#define MODE_UNLOCKED 0
17#define PAD_LEFT 0x0080
18#define PAD_DOWN 0x0040
19#define PAD_RIGHT 0x0020
21#define PAD_START 0x0008
24#define PAD_SELECT 0x0001
25#define PAD_SQUARE 0x8000
26#define PAD_CROSS 0x4000
27#define PAD_CIRCLE 0x2000
28#define PAD_TRIANGLE 0x1000
67pad_t *
pad_open(
unsigned int port,
unsigned int slot,
unsigned int mode,
unsigned int lock);
72 padRead(pad->port,pad->slot,pad->buttons);
83void pad_print_state(
pad_t *pad);
86void pad_print_supported_modes(
pad_t *pad);
unsigned char padRead(int port, int slot, struct padButtonStatus *data)