Potentially fix gamecube input

This commit is contained in:
Arceveti
2023-03-06 14:28:16 -05:00
parent fe02f58004
commit ea628dd113
2 changed files with 3 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ static const __OSContReadFormat sN64WriteFormat = {
.size.tx = sizeof(((__OSContReadFormat*)0)->send),
.size.rx = sizeof(((__OSContReadFormat*)0)->recv),
.send.cmdID = CONT_CMD_READ_BUTTON,
.recv.input.raw = -1, // 0xFFFF
.recv.input.raw.u8 = { -1 }, // 4 bytes of 0xFF.
};
// Default GCN Controller Input Short Poll command:
@@ -222,7 +222,7 @@ static const __OSContGCNShortPollFormat sGCNWriteFormatShort = {
.send.cmdID = CONT_CMD_READ_BUTTON,
.send.analog_mode = GCN_MODE_3_220,
.send.rumble = MOTOR_STOP,
.recv.input.raw = -1, // 0xFFFFFFFF
.recv.input.raw.u8 = { -1 }, // 8 bytes of 0xFF.
};
/**

View File

@@ -256,7 +256,7 @@ typedef struct PACKED {
typedef struct PACKED {
/*0x01*/ OSContCmdSize size; // The TX/RX sizes.
/*0x02*/ struct PACKED {
/*0x00*/ u8 cmdID; // The ID of the command to run (CONT_CMD_REQUEST_STATUS, CONT_CMD_RESET).
/*0x00*/ u8 cmdID; // The ID of the command to run.
} send; /*0x01*/
/*0x04*/ struct PACKED {
} recv; /*0x00*/