wut
1.0.0-beta8
Wii U Toolchain
|
Data Structures | |
struct | VPADVec2D |
struct | VPADVec3D |
struct | VPADDirection |
struct | VPADTouchData |
struct | VPADAccStatus |
struct | VPADStatus |
Typedefs | |
typedef struct VPADAccStatus | VPADAccStatus |
typedef struct VPADDirection | VPADDirection |
typedef struct VPADGyroStatus | VPADGyroStatus |
typedef struct VPADStatus | VPADStatus |
typedef struct VPADTouchData | VPADTouchData |
typedef struct VPADVec2D | VPADVec2D |
typedef struct VPADVec3D | VPADVec3D |
typedef enum VPADButtons | VPADButtons |
typedef enum VPADChan | VPADChan |
typedef enum VPADTouchPadValidity | VPADTouchPadValidity |
typedef enum VPADReadError | VPADReadError |
typedef enum VPADLcdMode | VPADLcdMode |
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 | VPADGetTPCalibratedPoint (VPADChan chan, VPADTouchData *calibratedData, VPADTouchData *uncalibratedData) |
Transform touch data according to the current calibration data. 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 | 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 | 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 | VPADSetGyroDirection (VPADChan chan, VPADDirection *dir) |
void | VPADSetGyroDirectionMag (VPADChan chan, float mag) |
void | VPADSetGyroMagnification (VPADChan chan, float pitch, float yaw, float roll) |
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 | VPADInitGyroZeroDriftMode (VPADChan chan) |
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... | |
void | VPADBASESetSensorBarSetting (VPADChan chan, int8_t setting) |
void | VPADBASEGetSensorBarSetting (VPADChan chan, int8_t *outSetting) |
int32_t | VPADSetSensorBar (VPADChan chan, BOOL on) |
Turn the given Gamepad's sensor bar on or off. More... | |
struct VPADDirection |
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 VPADTouchData VPADTouchData |
typedef enum VPADButtons VPADButtons |
typedef enum VPADTouchPadValidity VPADTouchPadValidity |
typedef enum VPADReadError VPADReadError |
typedef enum VPADLcdMode VPADLcdMode |
enum VPADButtons |
enum VPADTouchPadValidity |
enum VPADReadError |
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 VPADGetTPCalibratedPoint | ( | VPADChan | chan, |
VPADTouchData * | calibratedData, | ||
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. |
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 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 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 VPADSetGyroDirection | ( | VPADChan | chan, |
VPADDirection * | dir | ||
) |
void VPADSetGyroDirectionMag | ( | VPADChan | chan, |
float | mag | ||
) |
void VPADSetGyroMagnification | ( | VPADChan | chan, |
float | pitch, | ||
float | yaw, | ||
float | roll | ||
) |
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 VPADInitGyroZeroDriftMode | ( | VPADChan | chan | ) |
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. |
void VPADBASESetSensorBarSetting | ( | VPADChan | chan, |
int8_t | setting | ||
) |
void VPADBASEGetSensorBarSetting | ( | VPADChan | chan, |
int8_t * | outSetting | ||
) |
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. |