46 WUT_UNKNOWN_BYTES(5 * 4);
50 WUT_UNKNOWN_BYTES(3 * 4);
54 WUT_UNKNOWN_BYTES(8 * 4);
100 WUT_UNKNOWN_BYTES(20 * 4);
103 WUT_UNKNOWN_BYTES(16 * 4);
110 WUT_CHECK_OFFSET(
KPADStatus, 0x5C, extensionType);
115 WUT_CHECK_OFFSET(
KPADStatus, 0x60, nunchuck.stick);
120 WUT_CHECK_OFFSET(
KPADStatus, 0x6C, classic.leftStick);
121 WUT_CHECK_OFFSET(
KPADStatus, 0x74, classic.rightStick);
122 WUT_CHECK_OFFSET(
KPADStatus, 0x7C, classic.leftTrigger);
123 WUT_CHECK_OFFSET(
KPADStatus, 0x80, classic.rightTrigger);
128 WUT_CHECK_OFFSET(
KPADStatus, 0x6C, pro.leftStick);
129 WUT_CHECK_OFFSET(
KPADStatus, 0x74, pro.rightStick);
130 WUT_CHECK_OFFSET(
KPADStatus, 0x7C, pro.charging);
131 WUT_CHECK_OFFSET(
KPADStatus, 0x80, pro.wired);
enum WPADExtensionType KPADExtensionType
uint32_t hold
Indicates what KPADButtons are held down.
enum WPADDataFormat KPADDataFormat
uint8_t format
Value from KPADDataFormat.
uint32_t trigger
Indicates what KPADButtons have been pressed since last sample.
uint8_t extensionType
Value from KPADExtensionType.
int8_t error
Value from KPADError.
int32_t KPADRead(KPADChan chan, KPADStatus *data, uint32_t size)
uint32_t release
Indicates what KPADButtons have been released since last sample.
int32_t KPADReadEx(KPADChan chan, KPADStatus *data, uint32_t size, int32_t *error)