WPAD API Function List

WPADInit Initializes the WPAD library.
WPADShutdown Performs the WPAD library end process. Be sure to call this function when ending a game.
WPADRegisterAllocator Registers the allocator used when the library allocates work memory. The library uses this registered allocator to allocate memory only at initialization.
WPADGetWorkMemorySize Returns the size of the work memory allocated by the library.
WPADProbe Checks the specified channel's status and controller type.
WPADGetStatus Gets the usage status of library.
WPADSetSamplingCallback Registers a callback function that is called each time data is received from the Wii Remote (about every 5 milliseconds) at the specified channel.
WPADSetConnectCallback Registers the callback function that is called when the Wii Remote for the specified channel is connected or disconnected.
WPADSetExtensionCallback Registers the callback function that is called when an external expansion controller is inserted into or removed from a Wii Remote at the specified channel.
WPADButtonDown Detects whether button(s) have been pressed.
WPADButtonUp Detects whether button(s) have been released.
WPADGetDataFormat Gets the data format type of the received data.
WPADSetDataFormat Specifies the data format type of the received data. Some time is required before the received data format is changed.
WPADIsDpdEnabled Checks whether the pointer for the Wii Remote for the specified channel is working.
WPADControlDpd Controls the pointer for the Wii Remote of the specified channel.
WPADRead Gets the most recent controller status of the Wii Remote of the specified channel.
WPADSetAutoSamplingBuf Registers a buffer to store the controller status of the Wii Remote for the specified channel each time data is received (about once every 5 milliseconds).
WPADGetLatestIndexInBuf Obtains the index of the ring buffer where the most recent standard controller status is stored.
WPADGetAccGravityUnit Gets the per unit quantity of gravity acceleration for the motion sensor for either the Wii Remote or the Nunchuk unit for the specified channel.
WPADGetCLTriggerThreshold Gets the lower limit when clamping the L and R trigger buttons of the classic controller unit on the specified channel.
WPADClampStick Clamps analog stick input of Nunchuk unit and the Classic controller unit.
WPADClampTrigger Clamps the analog trigger inputs of a Classic controller unit.
WPADClampAcc Clamps the motion sensor inputs of the Nunchuk unit and the Wii Remote.
WPADDisconnect Disconnects the controller for the specified channel.
WPADGetInfo Gets the current information of the Wii Remote.
WPADGetInfoAsync Gets the current information of the Wii Remote.
WPADGetAddress Gets the unique ID of the Wii Remote for the specified channel.
WPADGetRadioSensitivity Gets the radio sensitivity of the Wii Remote on the specified channel.
WPADGetRegisteredDevNum Gets the number of Wii Remotes registered to the Wii console.
WPADSetDisableChannel Specifies a frequency not to be used for wireless communication for the controllers to avoid interference with wireless LANs.
WPADStartSyncDevice Begins the registration process required to use the Wii Remote.
WPADStartClearDevice Deletes all the Wii Remote information registered on the Wii console.
WPADStartSimpleSync Begins the simple pairing process required to use the Wii Remote temporarily.
WPADStopSimpleSync Terminates simple pairing.
WPADSetSyncDeviceCallback Sets the callback called when the SYNCHRO button is pressed and when pairing is completed. If no callback is set, WPADStartSyncDevice is automatically called.
WPADSetClearDeviceCallback Sets the callback called when the SYNCHRO button is pressed for more than 10 seconds and when deletion completes. If no callback has been set, WPADStartClearDevice is automatically called.
WPADSetSimpleSyncCallback Sets the callback to be called when simple pairing has ended.

Rumble Motor

WPADControlMotor Controls the rumble motor of the Wii Remote for the specified channel.
WPADStartMotor Begins vibration on the Wii Remote of the specified channel.
WPADStopMotor Stops vibration on the Wii Remote for the specified channel.
WPADEnableMotor Turns the Rumble Feature of the Wii Remote ON/OFF.
WPADIsMotorEnabled Gets the current ON/OFF status of the Rumble Feature of the Wii Remote.

Speaker

WPADIsSpeakerEnabled Checks whether the speaker of the Wii Remote on the specified channel is operational.
WPADControlSpeaker Controls the speaker of the Wii Remote on the specified channel.
WPADGetSpeakerVolume Gets the volume of the Wii Remote speaker.
WPADSetSpeakerVolume Sets the volume of the Wii Remote speaker.
WPADSendStreamData Sends audio data to the Wii Remote on the specified channel.

Internal Memory

WPADReadGameData Reads game data stored in internal memory.
WPADWriteGameData Saves game data in internal memory.
WPADSetGameTitle Registers the game title in the file information for game data saved in internal memory.
WPADSetGameTitleWChar Registers the game title (two-byte character code) in the file information for game data saved in internal memory.
WPADGetGameTitle Registers the game title from the file information for game data saved in internal memory.
WPADGetGameDataTimeStamp Gets the date/time stamp from the file information for game data saved in internal memory.

Config

WPADSaveConfig Records the Rumble Feature setting and speaker volume setting of the Wii Remote on the specified channel in the internal flash memory of the Wii Console.
WPADSetAutoSleepTime Sets the timeout for automatically disconnecting a Wii Remote that is not sending input to the Wii Console.
WPADGetSensorBarPosition Determines whether the sensor bar is installed above or below the television.

Types and Structures

WPADStatus Structure for the controller status of the Wii Remote.
WPADFSStatus Structure for the Nunchuk controller status.
WPADCLStatus Structure for the Classic controller status.
WPADStatusEx Structure for the extended controller status of the Wii Remote.
WPADInfo Structure for the Wii Remote status.



CONFIDENTIAL