wut
v1.5.0
Wii U Toolchain
|
WPAD is a low-level library under KPAD. More...
Data Structures | |
struct | WPADVec2D |
2D vector. More... | |
struct | WPADStatusProController |
Typedefs | |
typedef struct WPADStatusProController | WPADStatusProController |
typedef struct WPADVec2D | WPADVec2D |
typedef enum WPADChan | WPADChan |
Wii Remote channel. More... | |
typedef enum WPADDataFormat | WPADDataFormat |
Data format. More... | |
typedef enum WPADExtensionType | WPADExtensionType |
Extension type. More... | |
typedef enum WPADButton | WPADButton |
Wii Remote buttons. More... | |
typedef enum WPADNunchukButton | WPADNunchukButton |
Nunchuk buttons. More... | |
typedef enum WPADClassicButton | WPADClassicButton |
Classic Controller buttons. More... | |
typedef enum WPADProButton | WPADProButton |
Pro Controller buttons. More... | |
typedef void(* | WPADSamplingCallback) (WPADChan chan) |
typedef void(* | WPADExtensionCallback) (WPADChan chan, int32_t status) |
typedef void(* | WPADConnectCallback) (WPADChan chan, int32_t status) |
Functions | |
void | WPADInit () |
Initialises the WPAD library for use. More... | |
void | WPADShutdown () |
Cleans up and frees the WPAD library. More... | |
int32_t | WPADProbe (WPADChan chan, WPADExtensionType *outExtensionType) |
int32_t | WPADSetDataFormat (WPADChan chan, WPADDataFormat format) |
void | WPADEnableURCC (int32_t enable) |
void | WPADEnableWiiRemote (int32_t enable) |
void | WPADRead (WPADChan chan, void *data) |
void | WPADControlMotor (WPADChan chan, BOOL motorEnabled) |
Controls the associated WPADChan's rumble motor. More... | |
void | WPADSetAutoSleepTime (uint8_t time) |
void | WPADDisconnect (WPADChan chan) |
WPADConnectCallback | WPADSetConnectCallback (WPADChan chan, WPADConnectCallback callback) |
WPADExtensionCallback | WPADSetExtensionCallback (WPADChan chan, WPADExtensionCallback callback) |
WPADSamplingCallback | WPADSetSamplingCallback (WPADChan chan, WPADSamplingCallback callback) |
WPAD is a low-level library under KPAD.
struct WPADVec2D |
struct WPADStatusProController |
Data Fields | ||
---|---|---|
uint8_t | extensionType | A value from WPADExtensionType. |
uint8_t | err | |
uint32_t | buttons | |
WPADVec2D | leftStick | |
WPADVec2D | rightStick | |
WPADDataFormat | dataFormat |
typedef struct WPADStatusProController WPADStatusProController |
typedef enum WPADDataFormat WPADDataFormat |
Data format.
typedef enum WPADExtensionType WPADExtensionType |
Extension type.
typedef enum WPADButton WPADButton |
Wii Remote buttons.
typedef enum WPADNunchukButton WPADNunchukButton |
Nunchuk buttons.
typedef enum WPADClassicButton WPADClassicButton |
Classic Controller buttons.
typedef enum WPADProButton WPADProButton |
Pro Controller buttons.
typedef void(* WPADExtensionCallback) (WPADChan chan, int32_t status) |
typedef void(* WPADConnectCallback) (WPADChan chan, int32_t status) |
enum WPADChan |
enum WPADDataFormat |
enum WPADExtensionType |
Extension type.
enum WPADButton |
Wii Remote buttons.
enum WPADNunchukButton |
Nunchuk buttons.
enum WPADClassicButton |
Classic Controller buttons.
enum WPADProButton |
Pro Controller buttons.
void WPADInit | ( | ) |
Initialises the WPAD library for use.
void WPADShutdown | ( | ) |
Cleans up and frees the WPAD library.
int32_t WPADProbe | ( | WPADChan | chan, |
WPADExtensionType * | outExtensionType | ||
) |
int32_t WPADSetDataFormat | ( | WPADChan | chan, |
WPADDataFormat | format | ||
) |
void WPADEnableURCC | ( | int32_t | enable | ) |
void WPADEnableWiiRemote | ( | int32_t | enable | ) |
void WPADRead | ( | WPADChan | chan, |
void * | data | ||
) |
Controls the associated WPADChan's rumble motor.
void WPADSetAutoSleepTime | ( | uint8_t | time | ) |
void WPADDisconnect | ( | WPADChan | chan | ) |
WPADConnectCallback WPADSetConnectCallback | ( | WPADChan | chan, |
WPADConnectCallback | callback | ||
) |
WPADExtensionCallback WPADSetExtensionCallback | ( | WPADChan | chan, |
WPADExtensionCallback | callback | ||
) |
WPADSamplingCallback WPADSetSamplingCallback | ( | WPADChan | chan, |
WPADSamplingCallback | callback | ||
) |