233 WUT_UNKNOWN_BYTES(0x28);
239 WUT_PADDING_BYTES(2);
243 WUT_UNKNOWN_BYTES(8);
uint8_t extensionType
A value from WPADExtensionType.
WPADDataFormat dataFormat
void(* WPADExtensionCallback)(WPADChan chan, int32_t status)
WPADButton
Wii Remote buttons.
WPADDataFormat
Data format.
void WPADControlMotor(WPADChan chan, BOOL motorEnabled)
Controls the associated WPADChan's rumble motor.
WPADExtensionCallback WPADSetExtensionCallback(WPADChan chan, WPADExtensionCallback callback)
void WPADRead(WPADChan chan, void *data)
WPADChan
Wii Remote channel.
int32_t WPADSetDataFormat(WPADChan chan, WPADDataFormat format)
void WPADDisconnect(WPADChan chan)
void WPADEnableURCC(int32_t enable)
void WPADShutdown()
Cleans up and frees the WPAD library.
WPADClassicButton
Classic Controller buttons.
void WPADInit()
Initialises the WPAD library for use.
int32_t WPADProbe(WPADChan chan, WPADExtensionType *outExtensionType)
WPADSamplingCallback WPADSetSamplingCallback(WPADChan chan, WPADSamplingCallback callback)
void WPADSetAutoSleepTime(uint8_t time)
WPADExtensionType
Extension type.
void(* WPADSamplingCallback)(WPADChan chan)
WPADConnectCallback WPADSetConnectCallback(WPADChan chan, WPADConnectCallback callback)
void(* WPADConnectCallback)(WPADChan chan, int32_t status)
WPADNunchukButton
Nunchuk buttons.
WPADProButton
Pro Controller buttons.
void WPADEnableWiiRemote(int32_t enable)
@ WPAD_BUTTON_DOWN
The down button of the D-pad.
@ WPAD_BUTTON_A
The A button.
@ WPAD_BUTTON_C
The C button on the Nunchuk extension.
@ WPAD_BUTTON_LEFT
The left button of the D-pad.
@ WPAD_BUTTON_2
The 2 button.
@ WPAD_BUTTON_MINUS
The - button.
@ WPAD_BUTTON_Z
The Z button on the Nunchuk extension.
@ WPAD_BUTTON_UP
The up button of the D-pad.
@ WPAD_BUTTON_PLUS
The + button.
@ WPAD_BUTTON_1
The 1 button.
@ WPAD_BUTTON_RIGHT
The right button of the D-pad.
@ WPAD_BUTTON_HOME
The HOME button.
@ WPAD_BUTTON_B
The B button.
@ WPAD_FMT_PRO_CONTROLLER
@ WPAD_CLASSIC_BUTTON_UP
The up button of the D-pad.
@ WPAD_CLASSIC_BUTTON_R
The R button.
@ WPAD_CLASSIC_BUTTON_ZL
The ZL button.
@ WPAD_CLASSIC_STICK_R_EMULATION_DOWN
The emulated down button on the right stick.
@ WPAD_CLASSIC_BUTTON_DOWN
The down button of the D-pad.
@ WPAD_CLASSIC_BUTTON_A
The A button.
@ WPAD_CLASSIC_BUTTON_ZR
The ZR button.
@ WPAD_CLASSIC_STICK_R_EMULATION_UP
The emulated up button on the right stick.
@ WPAD_CLASSIC_STICK_L_EMULATION_UP
The emulated up button on the left stick.
@ WPAD_CLASSIC_BUTTON_B
The B button.
@ WPAD_CLASSIC_BUTTON_Y
The Y button.
@ WPAD_CLASSIC_STICK_L_EMULATION_LEFT
The emulated left button on the left stick.
@ WPAD_CLASSIC_STICK_R_EMULATION_RIGHT
The emulated right button on the right stick.
@ WPAD_CLASSIC_STICK_L_EMULATION_RIGHT
The emulated right button on the left stick.
@ WPAD_CLASSIC_BUTTON_PLUS
The + button.
@ WPAD_CLASSIC_BUTTON_RIGHT
The right button of the D-pad.
@ WPAD_CLASSIC_STICK_R_EMULATION_LEFT
The emulated left button on the right stick.
@ WPAD_CLASSIC_BUTTON_LEFT
The left button of the D-pad.
@ WPAD_CLASSIC_BUTTON_L
The L button.
@ WPAD_CLASSIC_BUTTON_MINUS
The - button.
@ WPAD_CLASSIC_BUTTON_X
The X button.
@ WPAD_CLASSIC_STICK_L_EMULATION_DOWN
The emulated down button on the left stick.
@ WPAD_CLASSIC_BUTTON_HOME
The HOME button.
@ WPAD_EXT_MPLUS_CLASSIC
Motion Plus with Classic Controller.
@ WPAD_EXT_MPLUS_NUNCHUK
Motion Plus with Nunchuk.
@ WPAD_EXT_MPLUS
Motion Plus.
@ WPAD_EXT_NUNCHUK
Nunchuk.
@ WPAD_EXT_CLASSIC
Classic Controller.
@ WPAD_EXT_PRO_CONTROLLER
Pro Controller.
@ WPAD_EXT_CORE
Wii Remote with no extension.
@ WPAD_NUNCHUK_STICK_EMULATION_LEFT
The emulated left button on the Nunchuk stick or the left button of the D-pad on the Wii Remote.
@ WPAD_NUNCHUK_STICK_EMULATION_UP
The emulated up button on the Nunchuk stick or the up button of the D-pad on the Wii Remote.
@ WPAD_NUNCHUK_STICK_EMULATION_RIGHT
The emulated right button on the Nunchuk stick or the right button of the D-pad on the Wii Remote.
@ WPAD_NUNCHUK_BUTTON_Z
The Z button.
@ WPAD_NUNCHUK_BUTTON_C
The C button.
@ WPAD_NUNCHUK_STICK_EMULATION_DOWN
The emulated down button on the Nunchuk stick or the down button of the D-pad on the Wii Remote.
@ WPAD_PRO_BUTTON_PLUS
The + button.
@ WPAD_PRO_BUTTON_B
The B button.
@ WPAD_PRO_RESERVED
Reserved.
@ WPAD_PRO_BUTTON_DOWN
The down button of the D-pad.
@ WPAD_PRO_BUTTON_X
The X button.
@ WPAD_PRO_BUTTON_HOME
The HOME button.
@ WPAD_PRO_BUTTON_Y
The Y button.
@ WPAD_PRO_STICK_R_EMULATION_UP
The emulated up button on the right stick.
@ WPAD_PRO_STICK_L_EMULATION_UP
The emulated up button on the left stick.
@ WPAD_PRO_BUTTON_LEFT
The left button of the D-pad.
@ WPAD_PRO_STICK_L_EMULATION_DOWN
The emulated down button on the left stick.
@ WPAD_PRO_BUTTON_MINUS
The - button.
@ WPAD_PRO_STICK_R_EMULATION_DOWN
The emulated down button on the right stick.
@ WPAD_PRO_TRIGGER_R
The right trigger button.
@ WPAD_PRO_STICK_R_EMULATION_LEFT
The emulated left button on the right stick.
@ WPAD_PRO_STICK_L_EMULATION_RIGHT
The emulated right button on the left stick.
@ WPAD_PRO_BUTTON_STICK_L
The left stick button.
@ WPAD_PRO_STICK_L_EMULATION_LEFT
The emulated left button on the left stick.
@ WPAD_PRO_TRIGGER_L
The left trigger button.
@ WPAD_PRO_BUTTON_STICK_R
The right stick button.
@ WPAD_PRO_TRIGGER_ZL
The ZL button.
@ WPAD_PRO_TRIGGER_ZR
The ZR button.
@ WPAD_PRO_BUTTON_UP
The up button of the D-pad.
@ WPAD_PRO_STICK_R_EMULATION_RIGHT
The emulated right button on the right stick.
@ WPAD_PRO_BUTTON_A
The A button.
@ WPAD_PRO_BUTTON_RIGHT
The right button of the D-pad.