Standard Controller High-Level Library (KPAD) API Function List

Controller Functions

KPADInit Initializes the KPAD library.
KPADInitEx Initializes the KPAD library. Configures the ring buffer used for internal processing.
KPADShutdown Stops the KPAD library.
KPADReset Returns to the initial state.
KPADRead Gets data.
KPADReadEx Gets data and error code.
KPADGetPosParam Gets the play radius and sensitivity for the set coordinate values.
KPADSetPosParam Adjusts the play radius and sensitivity for the coordinate values.
KPADGetPosPlayMode Gets the play mode for the set coordinate values.
KPADSetPosPlayMode Sets the play mode for the coordinate values.
KPADGetHoriParam Gets the play radius and sensitivity for the set horizontal parameters.
KPADSetHoriParam Adjusts the play radius and sensitivity for the horizontal parameters.
KPADGetHoriPlayMode Gets the play mode for the set horizontal parameters.
KPADSetHoriPlayMode Sets the play mode for the horizontal parameters.
KPADGetDistParam Gets the play radius and sensitivity for the set distance.
KPADSetDistParam Adjusts the play radius and sensitivity for the distance.
KPADGetDistPlayMode Gets the play mode for the set distance.
KPADSetDistPlayMode Sets the play mode for the distance.
KPADGetAccParam Gets the play radius and sensitivity for the set acceleration sensor.
KPADSetAccParam Adjusts the play radius and sensitivity for the acceleration sensor.
KPADGetAccPlayMode Gets the play mode for the set acceleration sensor.
KPADSetAccPlayMode Sets the play mode for the acceleration sensor.
KPADSetBtnRepeat Sets the digital button repeat functionality.
KPADGetSensorHeight Gets the height for the Sensor Bar location.
KPADSetSensorHeight Sets the height for the Sensor Bar location.
KPADCalibrateDPD Performs calibration.
KPADSetFSStickClamp Clamps control stick information for the Nunchuk.
KPADEnableDPD Issues a request to turn the Wii Remote DPD module on.
KPADDisableDPD Issues a request to turn the Wii Remote DPD module off.
KPADSetControlDpdCallback Registers the callback to use for notification when making DPD settings for the Wii Remote.
KPADIsEnableAimingMode Checks whether the aiming mode is enabled. (In this mode the nearest coordinates to the spot on the TV screen actually being pointed to by the Wii Remote are the obtained coordinates.)
KPADEnableAimingMode Sets the mode for getting the nearest coordinate to the spot on the TV screen actually being pointed to by the Wii Remote.
KPADDisableAimingMode Sets the mode for getting the coordinate with the center of the Sensor Bar used as the reference (default).
KPADGetProjectionPos Converts the normalized coordinate values into projection coordinates.
KPADGetUnifiedWpadStatus Gets controller data such as WPADStatus, including the data format for each element.
KPADEnableStickCrossClamp Sets the stick's clamping method to cross clamping.
KPADDisableStickCrossClamp Sets the stick's clamping method to circular clamping.
KPADSetSamplingCallback Registers the sampling callback for the application.
KPADSetConnectCallback Registers the connection notification callback for the application.
KPADSetReviseMode Sets whether to apply angular correction in advance to the values returned from the Nunchuk Motion Sensor.
KPADReviseAcc Corrects any user-specified vector in the same manner as the correction performed when KPADSetReviseMode is set to ON.
KPADGetReviseAngle Gets the angle of rotation, in degrees, of the angular correction performed by KPADReviseAcc.
KPADGetButtonProcMode Gets the button processing method used inside KPADRead.
KPADSetButtonProcMode Sets the button processing method used inside KPADRead.
KPADResetWbcZeroPoint Resets the zero point for the Wii Balance Board.
KPADResetWbcTgcWeight Recalculates the body weight measured by the Wii Balance Board with temperature and gravity corrections applied.

Wii MotionPlus Operation Configuration Functions

KPADDisableMpls Issues a request to turn off the Wii MotionPlus.
KPADEnableMpls Issues a request to turn on the Wii MotionPlus.
KPADGetMplsStatus Gets whether a started Wii MotionPlus is plugged into the Wii Remote, and if so, whether it is the only device in operation.
KPADSetControlMplsCallback Registers the callback to use for notifications when configuring the Wii MotionPlus.

Wii MotionPlus Data Processing Functions

KPADGetMplsWorkSize Gets the amount of memory required by the library to process Wii MotionPlus data.
KPADSetMplsWorkarea Configures the work area used to process Wii MotionPlus data. This function must be called once before using any other functions related to processing Wii MotionPlus data.
KPADResetMpls Initializes the internal state related to processing data for the specified channel's Wii MotionPlus.
KPADSetMplsAngle Resets angle, in the KPADMPStatus structure obtained by the KPADRead function for the specified channel's Wii MotionPlus, with arbitrary values.
KPADSetMplsDirection Resets dir, in the KPADMPStatus structure obtained by the KPADRead function for the specified channel's Wii MotionPlus, with arbitrary values.
KPADStartMplsCalibration Performs at-rest (zero point) calibration for the specified channel's Wii MotionPlus.
KPADWorkMplsCalibration Gets the progress status of the at-rest (zero-point) calibration process for the specified channel's Wii MotionPlus.
KPADStopMplsCalibration Stops execution of at-rest (zero-point) calibration for the specified channel's Wii MotionPlus.
KPADSetMplsDirectionMag Sets the magnitude to be applied to the angular velocity value used to internally calculate the dir member of the KPADMPStatus structure obtained by the KPADRead function for the specified channel's Wii MotionPlus.
KPADSetMplsMagnification Sets the scaling to apply to each direction when calculating angular speed for the specified channel's Wii MotionPlus.
KPADEnableMplsZeroPlay Enables zero-point tolerance for the specified channel's Wii MotionPlus.
KPADEnableMplsDirRevise Enables attitude correction for the specified channel's Wii MotionPlus.
KPADEnableMplsAccRevise Enables acceleration correction for the specified channel's Wii MotionPlus.
KPADEnableMplsDpdRevise Enables DPD correction for the specified channel's Wii MotionPlus.
KPADDisableMplsZeroPlay Disables zero-point tolerance for the specified channel's Wii MotionPlus.
KPADDisableMplsDirRevise Disables attitude correction for the specified channel's Wii MotionPlus.
KPADDisableMplsAccRevise Disables acceleration correction for the specified channel's Wii MotionPlus.
KPADDisableMplsDpdRevise Disables DPD correction for the specified channel's Wii MotionPlus.
KPADIsEnableMplsZeroPlay Checks if zero-point play tolerance is enabled for the specified channel's Wii MotionPlus. Returns the correction level when enabled.
KPADIsEnableMplsZeroDrift Gets the level of zero-point drift correction of the specified channel's Wii MotionPlus.
KPADIsEnableMplsDirRevise Checks if attitude correction is enabled for the specified channel's Wii MotionPlus. Returns the correction level when enabled.
KPADIsEnableMplsAccRevise Checks if acceleration correction is enabled for the specified channel's Wii MotionPlus. Returns the correction level when enabled.
KPADIsEnableMplsDpdRevise Checks if DPD correction is enabled for the specified channel's Wii MotionPlus. Returns the correction level when enabled.
KPADSetMplsZeroPlayParam Sets the at-rest (zero point) play tolerance for the specified channel's Wii MotionPlus.
KPADSetMplsZeroDriftMode Sets the zero-point drift correction mode of the specified channel's Wii MotionPlus.
KPADSetMplDirReviseParam Configures the level of attitude correction for the specified channel's Wii MotionPlus.
KPADSetMplsDirReviseBase Configures the base attitude to use when using attitude correction with the specified channel's Wii MotionPlus.
KPADSetMplsAccReviseParam Configures the level of acceleration correction for the specified channel's Wii MotionPlus.
KPADSetMplsDpdReviseParam Configures the level of DPD correction for the specified channel's Wii MotionPlus.
KPADGetMplsZeroPlayParam Gets the zero-point play tolerance for the specified channel's Wii MotionPlus.
KPADGetMplsZeroDriftMode Gets the zero-point drift correction mode of the specified channel's Wii MotionPlus.
KPADGetMplsDirReviseParam Gets the level of attitude correction for the specified channel's Wii MotionPlus.
KPADGetMplsAccReviseParam Gets the level of acceleration correction for the specified channel's Wii MotionPlus.
KPADGetMplsDpdReviseParam Gets the level of DPD correction for the specified channel's Wii MotionPlus.
KPADInitMplsZeroPlayParam Initializes the zero-point tolerance for the specified channel's Wii MotionPlus.
KPADInitMplsZeroDriftMode Initializes the zero-point drift correction mode of the specified channel's Wii MotionPlus.
KPADInitMplsDirReviseParam Initializes the level of attitude correction for the specified channel's Wii MotionPlus.
KPADInitMplsAccReviseParam Initializes the level of acceleration correction for the specified channel's Wii MotionPlus.
KPADInitMplsDpdReviseParam Initializes the level of DPD correction for the specified channel's Wii MotionPlus.

Structures and Unions

KPADStatus This structure stores controller data in the KPAD library.
KPADEXStatus This union stores the data for the extended unit in the KPAD library.
KPADUnifiedWpadStatus This structure stores controller data such as WPADStatus, including the data format for each element.

Deprecated Functions

KPADSetObjInterval (obsolete) Deprecated.
KPADGetWPADRingBuffer (obsolete) Deprecated.
KPADGetWPADFSRingBuffer (obsolete) Deprecated.
KPADGetWPADCLRingBuffer (obsolete) Deprecated.



CONFIDENTIAL