33#ifdef _LANGUAGE_C_PLUS_PLUS
40#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
86#define MAXCONTROLLERS 4
88#define MAXCONTROLLERS 6
92#define CONT_NO_RESPONSE_ERROR 0x8
93#define CONT_OVERRUN_ERROR 0x4
95#define CONT_FRAME_ERROR 0x2
96#define CONT_COLLISION_ERROR 0x1
101#define CONT_ABSOLUTE 0x0001
102#define CONT_RELATIVE 0x0002
103#define CONT_JOYPORT 0x0004
104#define CONT_EEPROM 0x8000
105#define CONT_EEP16K 0x4000
106#define CONT_TYPE_MASK 0x1f07
107#define CONT_TYPE_NORMAL 0x0005
108#define CONT_TYPE_MOUSE 0x0002
109#define CONT_TYPE_VOICE 0x0100
113#define CONT_CARD_ON 0x01
114#define CONT_CARD_PULL 0x02
115#define CONT_ADDR_CRC_ER 0x04
116#define CONT_EEPROM_BUSY 0x80
123#define CONT_START 0x1000
124#define CONT_UP 0x0800
125#define CONT_DOWN 0x0400
126#define CONT_LEFT 0x0200
127#define CONT_RIGHT 0x0100
137#define A_BUTTON CONT_A
138#define B_BUTTON CONT_B
142#define START_BUTTON CONT_START
143#define U_JPAD CONT_UP
144#define L_JPAD CONT_LEFT
145#define R_JPAD CONT_RIGHT
146#define D_JPAD CONT_DOWN
147#define U_CBUTTONS CONT_E
148#define L_CBUTTONS CONT_C
149#define R_CBUTTONS CONT_F
150#define D_CBUTTONS CONT_D
154#define CONT_ERR_NO_CONTROLLER PFS_ERR_NOPACK
155#define CONT_ERR_CONTRFAIL CONT_OVERRUN_ERROR
156#define CONT_ERR_INVALID PFS_ERR_INVALID
157#define CONT_ERR_DEVICE PFS_ERR_DEVICE
158#define CONT_ERR_NOT_READY 12
159#define CONT_ERR_VOICE_MEMORY 13
160#define CONT_ERR_VOICE_WORD 14
161#define CONT_ERR_VOICE_NO_RESPONSE 15
163#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
186extern s32 osContReset(OSMesgQueue*, OSContStatus*);
187extern s32 osContStartQuery(OSMesgQueue*);
190extern s32 osContSetCh(
u8);
192extern void osContGetQuery(OSContStatus*);
197#ifdef _LANGUAGE_C_PLUS_PLUS
s32 osContInit(OSMesgQueue *mq, u8 *bitpattern, OSContStatus *status)
Definition osContInit.c:18
void osContGetReadData(OSContPad *pad)
Definition osContStartReadData.c:33
s32 osContStartReadData(OSMesgQueue *mesg)
Definition osContStartReadData.c:9
signed int s32
Definition ultratypes.h:15
signed char s8
Definition ultratypes.h:11
unsigned short int u16
Definition ultratypes.h:14
unsigned char u8
Definition ultratypes.h:12