wut
v1.7.0
Wii U Toolchain
|
Data Structures | |
struct | VPADVec2D |
2D vector. More... | |
struct | VPADVec3D |
3D vector. More... | |
struct | VPADDirection |
Direction. More... | |
struct | VPADTouchCalibrationParam |
Touch calibration parameter. More... | |
struct | VPADTouchData |
Touch data. More... | |
struct | VPADAccStatus |
struct | VPADStatus |
Typedefs | |
typedef struct VPADAccStatus | VPADAccStatus |
typedef struct VPADDirection | VPADDirection |
typedef struct VPADGyroStatus | VPADGyroStatus |
typedef struct VPADStatus | VPADStatus |
typedef struct VPADTouchCalibrationParam | VPADTouchCalibrationParam |
typedef struct VPADTouchData | VPADTouchData |
typedef struct VPADVec2D | VPADVec2D |
typedef struct VPADVec3D | VPADVec3D |
typedef enum VPADButtons | VPADButtons |
Wii U GamePad buttons. More... | |
typedef enum VPADTouchPadValidity | VPADTouchPadValidity |
Touch pad validity. More... | |
typedef enum VPADTouchPadResolution | VPADTouchPadResolution |
Touch pad resolution. More... | |
typedef enum VPADReadError | VPADReadError |
Read error. More... | |
typedef enum VPADLcdMode | VPADLcdMode |
LCD mode. More... | |
typedef enum VPADGyroZeroDriftMode | VPADGyroZeroDriftMode |
Gyro zero drift mode. More... | |
typedef void(* | VPADSamplingCallback) (VPADChan chan) |
Functions | |
void | VPADInit () |
Initialises the VPAD library for use. More... | |
void | VPADShutdown () |
Cleans up and frees the VPAD library. More... | |
int32_t | VPADRead (VPADChan chan, VPADStatus *buffers, uint32_t count, VPADReadError *outError) |
Read controller data from the desired Gamepad. More... | |
void | VPADGetTPCalibrationParam (VPADChan chan, VPADTouchCalibrationParam *outParam) |
Get touch pad calibration parameters. More... | |
void | VPADSetTPCalibrationParam (VPADChan chan, const VPADTouchCalibrationParam *param) |
Set touch pad calibration parameters. More... | |
void | VPADGetTPCalibratedPoint (VPADChan chan, VPADTouchData *calibratedData, const VPADTouchData *uncalibratedData) |
Transform touch data according to the current calibration data. More... | |
void | VPADGetTPCalibratedPointEx (VPADChan chan, VPADTouchPadResolution tpResolution, VPADTouchData *calibratedData, const VPADTouchData *uncalibratedData) |
Transform touch data according to the current calibration data. More... | |
void | VPADSetAccParam (VPADChan chan, float playRadius, float sensitivity) |
void | VPADGetAccParam (VPADChan chan, float *outPlayRadius, float *outSensitivity) |
void | VPADSetBtnRepeat (VPADChan chan, float delaySec, float pulseSec) |
Set a repeat for held buttons - instead of appearing to be continually held, repeated presses and releases will be simulated at the given frequency. More... | |
void | VPADEnableStickCrossClamp (VPADChan chan) |
void | VPADDisableStickCrossClamp (VPADChan chan) |
void | VPADSetLStickClampThreshold (VPADChan chan, int32_t max, int32_t min) |
void | VPADSetRStickClampThreshold (VPADChan chan, int32_t max, int32_t min) |
void | VPADGetGyroDirReviseParam (VPADChan chan, float *param) |
void | VPADGetGyroZeroDriftMode (VPADChan chan, VPADGyroZeroDriftMode *mode) |
void | VPADGetLStickClampThreshold (VPADChan chan, int32_t *max, int32_t *min) |
void | VPADGetRStickClampThreshold (VPADChan chan, int32_t *max, int32_t *min) |
void | VPADSetStickOrigin (VPADChan chan) |
void | VPADDisableLStickZeroClamp (VPADChan chan) |
void | VPADDisableRStickZeroClamp (VPADChan chan) |
void | VPADEnableLStickZeroClamp (VPADChan chan) |
void | VPADEnableRStickZeroClamp (VPADChan chan) |
void | VPADSetCrossStickEmulationParamsL (VPADChan chan, float rotationDegree, float range, float radius) |
void | VPADSetCrossStickEmulationParamsR (VPADChan chan, float rotationDegree, float range, float radius) |
void | VPADGetCrossStickEmulationParamsL (VPADChan chan, float *outRotationDegree, float *outRange, float *outRadius) |
void | VPADGetCrossStickEmulationParamsR (VPADChan chan, float *outRotationDegree, float *outRange, float *outRadius) |
void | VPADSetGyroAngle (VPADChan chan, float ax, float ay, float az) |
void | VPADSetGyroDirReviseBase (VPADChan chan, VPADDirection *base) |
void | VPADSetGyroDirReviseParam (VPADChan chan, float param) |
void | VPADSetGyroDirection (VPADChan chan, VPADDirection *dir) |
void | VPADSetGyroDirectionMag (VPADChan chan, float mag) |
void | VPADSetGyroMagnification (VPADChan chan, float pitch, float yaw, float roll) |
void | VPADSetGyroZeroDriftMode (VPADChan chan, VPADGyroZeroDriftMode mode) |
void | VPADEnableGyroZeroPlay (VPADChan chan) |
void | VPADEnableGyroDirRevise (VPADChan chan) |
void | VPADEnableGyroAccRevise (VPADChan chan) |
void | VPADDisableGyroZeroPlay (VPADChan chan) |
void | VPADDisableGyroDirRevise (VPADChan chan) |
void | VPADDisableGyroAccRevise (VPADChan chan) |
float | VPADIsEnableGyroZeroPlay (VPADChan chan) |
float | VPADIsEnableGyroZeroDrift (VPADChan chan) |
float | VPADIsEnableGyroDirRevise (VPADChan chan) |
float | VPADIsEnableGyroAccRevise (VPADChan chan) |
void | VPADSetGyroZeroPlayParam (VPADChan chan, float radius) |
void | VPADInitGyroZeroPlayParam (VPADChan chan) |
void | VPADInitGyroDirReviseParam (VPADChan chan) |
void | VPADInitGyroAccReviseParam (VPADChan chan) |
void | VPADStartGyroMagRevise (VPADChan chan) |
void | VPADStopGyroMagRevise (VPADChan chan) |
void | VPADInitGyroZeroDriftMode (VPADChan chan) |
Initializes the zero drift mode on the desired Gamepad. More... | |
BOOL | VPADGetTVMenuStatus (VPADChan chan) |
Get the TV menu status. More... | |
void | VPADSetTVMenuInvalid (VPADChan chan, BOOL invalid) |
Enable or disable the TV menu. More... | |
void | VPADDisablePowerButton (VPADChan chan) |
Disable the power button. More... | |
void | VPADEnablePowerButton (VPADChan chan) |
Enable the power button. More... | |
int32_t | VPADControlMotor (VPADChan chan, uint8_t *pattern, uint8_t length) |
Turns on the rumble motor on the desired Gamepad. More... | |
void | VPADStopMotor (VPADChan chan) |
Stops the desired Gamepad's rumble motor and cancels any ongoing rumble pattern. More... | |
int32_t | VPADSetLcdMode (VPADChan chan, VPADLcdMode lcdMode) |
Sets the current mode of the display on the given Gamepad. More... | |
int32_t | VPADGetLcdMode (VPADChan chan, VPADLcdMode *outLcdMode) |
Get the current status of the given Gamepad's display. More... | |
int32_t | VPADSetSensorBar (VPADChan chan, BOOL on) |
Turn the given Gamepad's sensor bar on or off. More... | |
VPADSamplingCallback | VPADSetSamplingCallback (VPADChan chan, VPADSamplingCallback callback) |
BOOL | VPADGetButtonProcMode (VPADChan chan) |
Returns the proc mode of the given Gamepad. More... | |
struct VPADVec2D |
struct VPADVec3D |
struct VPADDirection |
struct VPADTouchCalibrationParam |
struct VPADTouchData |
Data Fields | ||
---|---|---|
uint16_t | x | The x-coordinate of a touched point. |
uint16_t | y | The y-coordinate of a touched point. |
uint16_t | touched | 0 if screen is not currently being touched. |
uint16_t | validity | Bitfield of VPADTouchPadValidity to indicate how touch sample accuracy. |
struct VPADAccStatus |
struct VPADStatus |
Data Fields | ||
---|---|---|
uint32_t | hold | Indicates what VPADButtons are held down. |
uint32_t | trigger | Indicates what VPADButtons have been pressed since last sample. |
uint32_t | release | Indicates what VPADButtons have been released since last sample. |
VPADVec2D | leftStick | Position of left analog stick. |
VPADVec2D | rightStick | Position of right analog stick. |
VPADAccStatus | accelorometer | Status of DRC accelorometer. |
VPADVec3D | gyro | Status of DRC gyro. |
VPADVec3D | angle | Status of DRC angle. |
uint8_t | error | |
VPADTouchData | tpNormal | Current touch position on DRC. |
VPADTouchData | tpFiltered1 | Filtered touch position, first level of smoothing. |
VPADTouchData | tpFiltered2 | Filtered touch position, second level of smoothing. |
VPADDirection | direction | |
BOOL | usingHeadphones | Set to 1 if headphones are plugged in, 0 otherwise. |
VPADVec3D | mag | Status of DRC magnetometer. |
uint8_t | slideVolume | Current volume set by the slide control. |
uint8_t | battery | Battery level of controller. |
uint8_t | micStatus | Status of DRC microphone. |
uint8_t | slideVolumeEx | Unknown volume related value. |
typedef struct VPADAccStatus VPADAccStatus |
typedef struct VPADDirection VPADDirection |
typedef struct VPADGyroStatus VPADGyroStatus |
typedef struct VPADStatus VPADStatus |
typedef struct VPADTouchCalibrationParam VPADTouchCalibrationParam |
typedef struct VPADTouchData VPADTouchData |
typedef enum VPADButtons VPADButtons |
Wii U GamePad buttons.
typedef enum VPADTouchPadValidity VPADTouchPadValidity |
Touch pad validity.
typedef enum VPADTouchPadResolution VPADTouchPadResolution |
Touch pad resolution.
typedef enum VPADReadError VPADReadError |
Read error.
typedef enum VPADLcdMode VPADLcdMode |
LCD mode.
typedef enum VPADGyroZeroDriftMode VPADGyroZeroDriftMode |
Gyro zero drift mode.
enum VPADButtons |
Wii U GamePad buttons.
enum VPADTouchPadValidity |
enum VPADReadError |
Read error.
Enumerator | |
---|---|
VPAD_READ_SUCCESS | No error occurred, and data was written to the buffers. |
VPAD_READ_NO_SAMPLES | There was no sample new data available to write. |
VPAD_READ_INVALID_CONTROLLER | The requested controller or channel was invalid. |
VPAD_READ_BUSY | VPAD channel is busy, perhaps being accessed by another thread. |
VPAD_READ_UNINITIALIZED | VPAD is uninitialized, need to call VPADInit() |
enum VPADLcdMode |
void VPADInit | ( | ) |
Initialises the VPAD library for use.
void VPADShutdown | ( | ) |
Cleans up and frees the VPAD library.
int32_t VPADRead | ( | VPADChan | chan, |
VPADStatus * | buffers, | ||
uint32_t | count, | ||
VPADReadError * | outError | ||
) |
Read controller data from the desired Gamepad.
chan | The channel to read from. |
buffers | Pointer to an array of VPADStatus buffers to fill. |
count | Number of buffers to fill. |
outError | Pointer to write read error to (if any). See VPADReadError for meanings. |
void VPADGetTPCalibrationParam | ( | VPADChan | chan, |
VPADTouchCalibrationParam * | outParam | ||
) |
Get touch pad calibration parameters.
chan | Denotes which channel to get the calibration parameter from. |
outParam | Pointer to the calibration to get. |
void VPADSetTPCalibrationParam | ( | VPADChan | chan, |
const VPADTouchCalibrationParam * | param | ||
) |
Set touch pad calibration parameters.
chan | Denotes which channel to set the calibration parameter to. |
param | Pointer to the calibration to set. |
void VPADGetTPCalibratedPoint | ( | VPADChan | chan, |
VPADTouchData * | calibratedData, | ||
const VPADTouchData * | uncalibratedData | ||
) |
Transform touch data according to the current calibration data.
The calibration used may either be the system default or set by the application via VPADSetTPCalibrationParam().
chan | Denotes which channel to get the calibration data from. |
calibratedData | Pointer to write calibrated touch data to. |
uncalibratedData | Pointer to the source data to apply the calibration to. |
void VPADGetTPCalibratedPointEx | ( | VPADChan | chan, |
VPADTouchPadResolution | tpResolution, | ||
VPADTouchData * | calibratedData, | ||
const VPADTouchData * | uncalibratedData | ||
) |
Transform touch data according to the current calibration data.
chan | Denotes which channel to get the calibration data from. |
tpResolution | Touchpad resolution. |
calibratedData | Pointer to write calibrated touch data to. |
uncalibratedData | Pointer to the source data to apply the calibration to. |
void VPADSetAccParam | ( | VPADChan | chan, |
float | playRadius, | ||
float | sensitivity | ||
) |
void VPADGetAccParam | ( | VPADChan | chan, |
float * | outPlayRadius, | ||
float * | outSensitivity | ||
) |
void VPADSetBtnRepeat | ( | VPADChan | chan, |
float | delaySec, | ||
float | pulseSec | ||
) |
Set a repeat for held buttons - instead of appearing to be continually held, repeated presses and releases will be simulated at the given frequency.
This is similar to what happens with most computer keyboards when you hold a key.
chan | Denotes which channel to set up button repeat on. |
delaySec | The amount of time, in seconds, to wait until a button should start repeating. |
pulseSec | The amount of time to wait between simulated presses - effectively setting the period of the repetition. |
void VPADEnableStickCrossClamp | ( | VPADChan | chan | ) |
void VPADDisableStickCrossClamp | ( | VPADChan | chan | ) |
void VPADSetLStickClampThreshold | ( | VPADChan | chan, |
int32_t | max, | ||
int32_t | min | ||
) |
void VPADSetRStickClampThreshold | ( | VPADChan | chan, |
int32_t | max, | ||
int32_t | min | ||
) |
void VPADGetGyroDirReviseParam | ( | VPADChan | chan, |
float * | param | ||
) |
void VPADGetGyroZeroDriftMode | ( | VPADChan | chan, |
VPADGyroZeroDriftMode * | mode | ||
) |
void VPADGetLStickClampThreshold | ( | VPADChan | chan, |
int32_t * | max, | ||
int32_t * | min | ||
) |
void VPADGetRStickClampThreshold | ( | VPADChan | chan, |
int32_t * | max, | ||
int32_t * | min | ||
) |
void VPADSetStickOrigin | ( | VPADChan | chan | ) |
void VPADDisableLStickZeroClamp | ( | VPADChan | chan | ) |
void VPADDisableRStickZeroClamp | ( | VPADChan | chan | ) |
void VPADEnableLStickZeroClamp | ( | VPADChan | chan | ) |
void VPADEnableRStickZeroClamp | ( | VPADChan | chan | ) |
void VPADSetCrossStickEmulationParamsL | ( | VPADChan | chan, |
float | rotationDegree, | ||
float | range, | ||
float | radius | ||
) |
void VPADSetCrossStickEmulationParamsR | ( | VPADChan | chan, |
float | rotationDegree, | ||
float | range, | ||
float | radius | ||
) |
void VPADGetCrossStickEmulationParamsL | ( | VPADChan | chan, |
float * | outRotationDegree, | ||
float * | outRange, | ||
float * | outRadius | ||
) |
void VPADGetCrossStickEmulationParamsR | ( | VPADChan | chan, |
float * | outRotationDegree, | ||
float * | outRange, | ||
float * | outRadius | ||
) |
void VPADSetGyroAngle | ( | VPADChan | chan, |
float | ax, | ||
float | ay, | ||
float | az | ||
) |
void VPADSetGyroDirReviseBase | ( | VPADChan | chan, |
VPADDirection * | base | ||
) |
void VPADSetGyroDirReviseParam | ( | VPADChan | chan, |
float | param | ||
) |
void VPADSetGyroDirection | ( | VPADChan | chan, |
VPADDirection * | dir | ||
) |
void VPADSetGyroDirectionMag | ( | VPADChan | chan, |
float | mag | ||
) |
void VPADSetGyroMagnification | ( | VPADChan | chan, |
float | pitch, | ||
float | yaw, | ||
float | roll | ||
) |
void VPADSetGyroZeroDriftMode | ( | VPADChan | chan, |
VPADGyroZeroDriftMode | mode | ||
) |
void VPADEnableGyroZeroPlay | ( | VPADChan | chan | ) |
void VPADEnableGyroDirRevise | ( | VPADChan | chan | ) |
void VPADEnableGyroAccRevise | ( | VPADChan | chan | ) |
void VPADDisableGyroZeroPlay | ( | VPADChan | chan | ) |
void VPADDisableGyroDirRevise | ( | VPADChan | chan | ) |
void VPADDisableGyroAccRevise | ( | VPADChan | chan | ) |
float VPADIsEnableGyroZeroPlay | ( | VPADChan | chan | ) |
float VPADIsEnableGyroZeroDrift | ( | VPADChan | chan | ) |
float VPADIsEnableGyroDirRevise | ( | VPADChan | chan | ) |
float VPADIsEnableGyroAccRevise | ( | VPADChan | chan | ) |
void VPADSetGyroZeroPlayParam | ( | VPADChan | chan, |
float | radius | ||
) |
void VPADInitGyroZeroPlayParam | ( | VPADChan | chan | ) |
void VPADInitGyroDirReviseParam | ( | VPADChan | chan | ) |
void VPADInitGyroAccReviseParam | ( | VPADChan | chan | ) |
void VPADStartGyroMagRevise | ( | VPADChan | chan | ) |
void VPADStopGyroMagRevise | ( | VPADChan | chan | ) |
void VPADInitGyroZeroDriftMode | ( | VPADChan | chan | ) |
Initializes the zero drift mode on the desired Gamepad.
chan | The channel of the Gamepad to initialize. |
Get the TV menu status.
chan | The channel of the Gamepad to get the TV status from. |
Enable or disable the TV menu.
chan | The channel of the Gamepad to enable or disable the TV menu from. |
invalid | Set to TRUE to disable the TV menu or FALSE to enable it. |
void VPADDisablePowerButton | ( | VPADChan | chan | ) |
Disable the power button.
chan | The channel of the Gamepad to disable the power button from. |
void VPADEnablePowerButton | ( | VPADChan | chan | ) |
Enable the power button.
chan | The channel of the Gamepad to enable the power button from. |
int32_t VPADControlMotor | ( | VPADChan | chan, |
uint8_t * | pattern, | ||
uint8_t | length | ||
) |
Turns on the rumble motor on the desired Gamepad.
A custom rumble pattern can be set by setting bytes in the input buffer.
chan | The channel of the Gamepad to rumble. |
pattern | Pointer to an array of bytes, where each byte represents the status of the rumble at a given time. 0xFF denotes rumble while 0x00 denotes no rumble. |
length | The size of the rumble pattern, in bytes. |
void VPADStopMotor | ( | VPADChan | chan | ) |
Stops the desired Gamepad's rumble motor and cancels any ongoing rumble pattern.
chan | The channel of the Gamepad to stop rumbling. |
int32_t VPADSetLcdMode | ( | VPADChan | chan, |
VPADLcdMode | lcdMode | ||
) |
Sets the current mode of the display on the given Gamepad.
This function can be used to turn the display on and off, or place it in standby.
chan | The channel of the Gamepad to have its display mode changed. |
lcdMode | One of VPADLcdMode representing the new status of the display. |
int32_t VPADGetLcdMode | ( | VPADChan | chan, |
VPADLcdMode * | outLcdMode | ||
) |
Get the current status of the given Gamepad's display.
chan | The channel of the Gamepad to get the display mode from. |
outLcdMode | Pointer to write a value of VPADLcdMode into. |
Turn the given Gamepad's sensor bar on or off.
Enabling the sensor bar allows any Wii Remote to position itself relative to the GamePad.
chan | The channel of the Gamepad to control the sensor bar on. |
on | true to enable the sensor bar, false to disable it. |
VPADSamplingCallback VPADSetSamplingCallback | ( | VPADChan | chan, |
VPADSamplingCallback | callback | ||
) |