wut v1.8.0
Wii U Toolchain
|
Go to the source code of this file.
Data Structures | |
struct | KPADVec2D |
2D vector. More... | |
struct | KPADVec3D |
3D vector. More... | |
struct | KPADStatus |
A structure containing the Wii Remote data. More... | |
struct | KPADUnifiedWpadStatus |
Storage type for the internal KPAD ring buffer. More... | |
union | KPADStatus.__unnamed46__ |
Extension data, check with extensionType to see what is valid to read. More... | |
struct | KPADStatus.__unnamed46__.nunchuk |
Structure to use when extensionType is set to WPAD_EXT_NUNCHUK. More... | |
struct | KPADStatus.__unnamed46__.classic |
Structure to use when extensionType is set to WPAD_EXT_CLASSIC. More... | |
struct | KPADStatus.__unnamed46__.pro |
Structure to use when extensionType is set to WPAD_EXT_PRO_CONTROLLER. More... | |
struct | KPADStatus.__unnamed46__.balance |
Structure to use when extensionType is set to WPAD_EXT_BALANCE_BOARD . More... | |
struct | KPADStatus.mplus |
Structure to use when MotionPlus is enabled. More... | |
union | KPADUnifiedWpadStatus.__unnamed53__ |
Typedefs | |
typedef enum WPADChan | KPADChan |
Wii Remote channel. | |
typedef enum WPADDataFormat | KPADDataFormat |
Data format. | |
typedef enum WPADExtensionType | KPADExtensionType |
Extension type. | |
typedef enum WPADMplsMode | KPADMplsMode |
MotionPlus Mode. | |
typedef struct KPADStatus | KPADStatus |
typedef struct KPADUnifiedWpadStatus | KPADUnifiedWpadStatus |
typedef struct KPADVec2D | KPADVec2D |
typedef struct KPADVec3D | KPADVec3D |
typedef enum KPADError | KPADError |
Error. | |
typedef enum KPADControlMplsStatus | KPADControlMplsStatus |
Status codes for KPADControlMplsCallback . | |
typedef WPADConnectCallback | KPADConnectCallback |
typedef WPADSamplingCallback | KPADSamplingCallback |
typedef void(* | KPADControlMplsCallback) (KPADChan chan, KPADControlMplsStatus status) |
Callback used for KPADSetControlMplsCallback() . | |
Enumerations | |
enum | KPADError { KPAD_ERROR_OK = 0 , KPAD_ERROR_NO_SAMPLES = -1 , KPAD_ERROR_INVALID_CONTROLLER = -2 , KPAD_ERROR_WPAD_UNINIT = -3 , KPAD_ERROR_BUSY = -4 , KPAD_ERROR_UNINITIALIZED = -5 } |
Error. More... | |
enum | KPADControlMplsStatus { KPAD_CONTROL_MPLS_STATUS_STARTED = 0 , KPAD_CONTROL_MPLS_STATUS_FINISHED = 1 , KPAD_CONTROL_MPLS_STATUS_FAILED_MPLS_ONLY = -1 , KPAD_CONTROL_MPLS_STATUS_FAILED_MPLS_NUNCHUK = -2 , KPAD_CONTROL_MPLS_STATUS_FAILED_MPLS_CLASSIC = -3 } |
Status codes for KPADControlMplsCallback . More... | |
Functions | |
void | KPADInit (void) |
Initialises the KPAD library for use. | |
void | KPADInitEx (KPADUnifiedWpadStatus *buffer, uint32_t count) |
Initializes the KPAD library with extra buffers. | |
void | KPADShutdown (void) |
Cleans up and frees the KPAD library. | |
uint32_t | KPADRead (KPADChan chan, KPADStatus *data, uint32_t size) |
Read data from the desired controller. | |
uint32_t | KPADReadEx (KPADChan chan, KPADStatus *data, uint32_t size, KPADError *error) |
Read data from the desired controller. | |
void | KPADGetUnifiedWpadStatus (KPADChan chan, KPADUnifiedWpadStatus *buffer, uint32_t count) |
Read a number of entries from the internal buffer. | |
int32_t | KPADSetMaxControllers (uint32_t maxControllers) |
Set the maximum amount of controllers which can be connected to the system. | |
uint32_t | KPADGetMaxControllers (void) |
Get the maximum amount of controllers which can be connected to the system. | |
uint32_t | KPADGetGameMaxControllers (void) |
Get the maximum amount of controllers which can be connected, as reported by IOS-PAD. | |
KPADConnectCallback | KPADSetConnectCallback (KPADChan chan, KPADConnectCallback callback) |
Set a callback for when a controller connection status changes. | |
KPADSamplingCallback | KPADSetSamplingCallback (KPADChan channel, KPADSamplingCallback callback) |
Same usage as , except compatible with other KPAD functions. | |
uint32_t | KPADGetMplsWorkSize (void) |
Returns the amount of memory needed for KPADSetMplsWorkarea() . | |
void | KPADSetMplsWorkarea (void *buf) |
Sets the extra memory KPAD will use to process MotionPlus data. | |
void | KPADSetControlMplsCallback (KPADChan chan, KPADControlMplsCallback callback) |
Set a callback for when the MotionPlus extension is configured. | |
void | KPADEnableMpls (KPADChan channel, KPADMplsMode mode) |
Sets MotionPlus for the controller in specified mode. | |
void | KPADDisableMpls (KPADChan channel) |
Disables MotionPlus for the controller. | |
KPADMplsMode | KPADGetMplsStatus (KPADChan chan) |
Get MotionPlus mode. | |
void | KPADResetMpls (KPADChan chan) |
Resets the MotionPlus state. | |
void | KPADEnableDPD (KPADChan chan) |
Enable IR pointing. | |
void | KPADDisableDPD (KPADChan chan) |
Disable IR pointing. | |
void | KPADResetWbcZeroPoint (void) |
Resets the Balance Board's zero. | |
void | KPADResetWbcTgcWeight (void) |
Recalculate the Balance Board's TGC coefficients and zero. | |