wut
v1.7.0
Wii U Toolchain
|
Typedefs | |
typedef enum VPADChan | VPADChan |
Wii U GamePad channel. More... | |
Enumerations | |
enum | VPADChan { VPAD_CHAN_0 = 0 , VPAD_CHAN_1 = 1 } |
Wii U GamePad channel. More... | |
enum | VPADIRCStatusFlags { VPAD_IRC_STATUS_FLAG_HAS_DATA = 1 , VPAD_IRC_STATUS_FLAG_CONNECTED = 2 } |
Functions | |
void | VPADBASEInit () |
Initializes the VPADBASE library for use. More... | |
void | VPADBASEShutdown () |
Deinitializes the VPADBASE library. More... | |
BOOL | VPADBASEIsInit () |
Checks if VPADBASE is initialized. More... | |
int32_t | VPADBASEGetMotorOnRemainingCount (VPADChan chan) |
Return a count representing the amount of time left for the given Gamepad's rumble pattern. More... | |
int32_t | VPADBASESetMotorOnRemainingCount (VPADChan chan, int32_t counter) |
Set a count representing the amount of time left for the given Gamepad's rumble pattern. More... | |
void | VPADBASESetSensorBarSetting (VPADChan chan, int8_t setting) |
void | VPADBASEGetSensorBarSetting (VPADChan chan, int8_t *outSetting) |
int32_t | VPADBASEGetHeadphoneStatus (VPADChan chan) |
Get the headphone status. More... | |
void | VPADBASEGetGameControllerMode (VPADChan chan, int32_t *mode) |
Get the controller mode. More... | |
void | VPADBASESetGameControllerMode (VPADChan chan, int32_t mode) |
Set the controller mode. More... | |
void | VPADBASEGetPowerButtonPressStatus (VPADChan chan, uint32_t *tick, uint32_t *status) |
Get the POWER button press status. More... | |
void | VPADBASESetPowerButtonPressStatus (VPADChan chan, uint32_t tick, uint32_t status) |
Set the POWER button press status. More... | |
void | VPADBASESetPowerButtonDisableMode (VPADChan chan, uint32_t mode) |
Set the POWER button mode. More... | |
void | VPADBASEClearIRCEvent (VPADChan chan) |
Clear pending IRC events. More... | |
VPADIRCStatusFlags | VPADBASEGetIRCStatus (VPADChan chan) |
Get the current IRC status. More... | |
enum VPADChan |
enum VPADIRCStatusFlags |
void VPADBASEInit | ( | ) |
Initializes the VPADBASE library for use.
void VPADBASEShutdown | ( | ) |
Deinitializes the VPADBASE library.
BOOL VPADBASEIsInit | ( | ) |
Checks if VPADBASE is initialized.
TRUE
if initialized. int32_t VPADBASEGetMotorOnRemainingCount | ( | VPADChan | chan | ) |
Return a count representing the amount of time left for the given Gamepad's rumble pattern.
chan | Denotes which channel to get the rumble time from. |
int32_t VPADBASESetMotorOnRemainingCount | ( | VPADChan | chan, |
int32_t | counter | ||
) |
Set a count representing the amount of time left for the given Gamepad's rumble pattern.
chan | Denotes which channel to set the rumble count for. |
counter | The value of the new rumble count. |
void VPADBASESetSensorBarSetting | ( | VPADChan | chan, |
int8_t | setting | ||
) |
void VPADBASEGetSensorBarSetting | ( | VPADChan | chan, |
int8_t * | outSetting | ||
) |
int32_t VPADBASEGetHeadphoneStatus | ( | VPADChan | chan | ) |
Get the headphone status.
chan | The channel of the Gamepad to get the headphone status from. |
void VPADBASEGetGameControllerMode | ( | VPADChan | chan, |
int32_t * | mode | ||
) |
Get the controller mode.
chan | The channel of the Gamepad to get the controller mode from. |
mode | Pointer to write a value of the controller mode into. |
void VPADBASESetGameControllerMode | ( | VPADChan | chan, |
int32_t | mode | ||
) |
Set the controller mode.
chan | The channel of the Gamepad to set the controller mode to. |
mode | Any non-zero mode will turn off the display, like the "Display Off" button under Controller Settings. Inputs are not disabled. |
void VPADBASEGetPowerButtonPressStatus | ( | VPADChan | chan, |
uint32_t * | tick, | ||
uint32_t * | status | ||
) |
Get the POWER button press status.
chan | The channel of the Gamepad to get the POWER button press status from. |
tick | The value given by OSGetTick when the button was pressed. |
status | The status is set to 0 if the POWER button is not pressed. |
void VPADBASESetPowerButtonPressStatus | ( | VPADChan | chan, |
uint32_t | tick, | ||
uint32_t | status | ||
) |
Set the POWER button press status.
chan | The channel of the Gamepad to set the POWER button press status to. |
tick | The tick value to set. |
status | The status to set. |
void VPADBASESetPowerButtonDisableMode | ( | VPADChan | chan, |
uint32_t | mode | ||
) |
Set the POWER button mode.
chan | The channel of the Gamepad to set the POWER button disable mode to. |
mode | Set to 0 to enable and set to 1 to disable. |
void VPADBASEClearIRCEvent | ( | VPADChan | chan | ) |
Clear pending IRC events.
chan | The channel of the Gamepad. |
VPADIRCStatusFlags VPADBASEGetIRCStatus | ( | VPADChan | chan | ) |
Get the current IRC status.
chan | The channel of the Gamepad. |