wut  v1.5.0
Wii U Toolchain
Typedefs | Enumerations | Functions
VPAD Base
Collaboration diagram for VPAD Base:

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...
 

Detailed Description

Typedef Documentation

◆ VPADChan

typedef enum VPADChan VPADChan

Wii U GamePad channel.

Enumeration Type Documentation

◆ VPADChan

enum VPADChan

Wii U GamePad channel.

Enumerator
VPAD_CHAN_0 

Channel 0.

VPAD_CHAN_1 

Channel 1.

Definition at line 15 of file base.h.

◆ VPADIRCStatusFlags

Enumerator
VPAD_IRC_STATUS_FLAG_HAS_DATA 

Indicates that there is pending data which can be received.

VPAD_IRC_STATUS_FLAG_CONNECTED 

Indicates that another device is connected.

Definition at line 23 of file base.h.

Function Documentation

◆ VPADBASEInit()

void VPADBASEInit ( )

Initializes the VPADBASE library for use.

Note
This is internally called by vpad and does not need to be called manually.
See also

◆ VPADBASEShutdown()

void VPADBASEShutdown ( )

Deinitializes the VPADBASE library.

Note
This is internally called by vpad and does not need to be called manually.
See also

◆ VPADBASEIsInit()

BOOL VPADBASEIsInit ( )

Checks if VPADBASE is initialized.

Returns
TRUE if initialized.

◆ VPADBASEGetMotorOnRemainingCount()

int32_t VPADBASEGetMotorOnRemainingCount ( VPADChan  chan)

Return a count representing the amount of time left for the given Gamepad's rumble pattern.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanDenotes which channel to get the rumble time from.

◆ VPADBASESetMotorOnRemainingCount()

int32_t VPADBASESetMotorOnRemainingCount ( VPADChan  chan,
int32_t  counter 
)

Set a count representing the amount of time left for the given Gamepad's rumble pattern.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanDenotes which channel to set the rumble count for.
counterThe value of the new rumble count.

◆ VPADBASESetSensorBarSetting()

void VPADBASESetSensorBarSetting ( VPADChan  chan,
int8_t  setting 
)

◆ VPADBASEGetSensorBarSetting()

void VPADBASEGetSensorBarSetting ( VPADChan  chan,
int8_t *  outSetting 
)

◆ VPADBASEGetHeadphoneStatus()

int32_t VPADBASEGetHeadphoneStatus ( VPADChan  chan)

Get the headphone status.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanThe channel of the Gamepad to get the headphone status from.
Returns
Returns 1 if headphones are connected, 0 otherwise.

◆ VPADBASEGetGameControllerMode()

void VPADBASEGetGameControllerMode ( VPADChan  chan,
int32_t *  mode 
)

Get the controller mode.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanThe channel of the Gamepad to get the controller mode from.
modePointer to write a value of the controller mode into.

◆ VPADBASESetGameControllerMode()

void VPADBASESetGameControllerMode ( VPADChan  chan,
int32_t  mode 
)

Set the controller mode.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanThe channel of the Gamepad to set the controller mode to.
modeAny non-zero mode will turn off the display, like the "Display Off" button under Controller Settings. Inputs are not disabled.

◆ VPADBASEGetPowerButtonPressStatus()

void VPADBASEGetPowerButtonPressStatus ( VPADChan  chan,
uint32_t *  tick,
uint32_t *  status 
)

Get the POWER button press status.

Note
Retail Wii U systems have a single Gamepad on VPAD_CHAN_0.
Parameters
chanThe channel of the Gamepad to get the POWER button press status from.
tickThe value given by OSGetTick when the button was pressed.
statusThe status is set to 0 if the POWER button is not pressed.

◆ VPADBASESetPowerButtonPressStatus()

void VPADBASESetPowerButtonPressStatus ( VPADChan  chan,
uint32_t  tick,
uint32_t  status 
)

Set the POWER button press status.

Parameters
chanThe channel of the Gamepad to set the POWER button press status to.
tickThe tick value to set.
statusThe status to set.

◆ VPADBASESetPowerButtonDisableMode()

void VPADBASESetPowerButtonDisableMode ( VPADChan  chan,
uint32_t  mode 
)

Set the POWER button mode.

Parameters
chanThe channel of the Gamepad to set the POWER button disable mode to.
modeSet to 0 to enable and set to 1 to disable.
See also

◆ VPADBASEClearIRCEvent()

void VPADBASEClearIRCEvent ( VPADChan  chan)

Clear pending IRC events.

Parameters
chanThe channel of the Gamepad.

◆ VPADBASEGetIRCStatus()

VPADIRCStatusFlags VPADBASEGetIRCStatus ( VPADChan  chan)

Get the current IRC status.

Parameters
chanThe channel of the Gamepad.
Returns
The current status flags (see VPADIRCStatusFlags).