WPAD Function List

Wii Remote

WPADInit Initializes the WPAD library.
WPADShutdown Performs the WPAD library end process. Be sure to call this function when exiting a game. * Eliminated.
WPADReconnect Performs the WPAD library end process. Be sure to call this function when you want to automatically reconnect from the Wii Remote after restarting a game. * Eliminated.
WPADRegisterAllocator Registers the allocator used when the library allocates work memory. The library uses the allocator registered by this function 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 the library.
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.
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 for the specified channel.
WPADGetCLTriggerThreshold Gets the lower limit when clamping the L and R trigger buttons of the Classic Controller on the specified channel.
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 Extension Controller is plugged into or unplugged from a Wii Remote on the specified channel.
WPADButtonDown Detects whether button(s) have been pressed.
WPADButtonUp Detects whether button(s) have been released.
WPADClampStick Clamps analog stick input of the Nunchuk and the Classic Controller.
WPADClampTrigger Clamps the analog trigger inputs of a Classic Controller.
WPADClampAcc Clamps the motion sensor inputs of the Nunchuk and the Wii Remote.
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.
WPADGetDpdFormat Gets the data format of the pointer of the Wii Remote on the specified channel.
WPADGetDpdSensitivity Gets the sensitivity of the pointer of the Wii Remote on the specified channel.
WPADSetDpdSensitivity Sets the sensitivity of the pointer of the Wii Remote on the specified channel.
WPADControlExtGimmick Controls the gimmicks (mechanisms) of the External Extension Controller plugged into the Wii Remote of the specified channel.
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.
WPADGetSyncType Gets the pairing type of the Wii Remote on the specified channel.
WPADGetRegisteredDevNum Gets the number of Wii Remotes paired with the Wii console.
WPADGetTemporaryDevNum Gets the number of Wii Remotes that have been simple-paired with the Wii console.
WPADGetRadioSensitivity Gets the radio sensitivity of the Wii Remote on the specified channel.
WPADSetDisableChannel Specifies a frequency not to be used for wireless communication for the controllers to avoid interference with wireless LANs.
WPADStartSyncDevice Begins the pairing process required to use the Wii Remote.
WPADStartFastSyncDevice Quickly executes the pairing process required to use the Wii Remote.
WPADStartClearDevice Deletes all the information on the Wii Remotes paired with the Wii console.
WPADStartSimpleSync Begins the simple pairing process required to use the Wii Remote temporarily.
WPADStartFastSimpleSync Quickly executes the simple pairing process required to use the Wii Remote temporarily.
WPADStopSimpleSync Terminates simple pairing.
WPADSetSyncDeviceCallback Sets the callback called when SYNCHRO is pressed and when pairing is completed. If no callback is set, WPADStartSyncDevice is automatically called.
WPADSetClearDeviceCallback Sets the callback called when SYNCHRO 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.
WPADGetAcceptConnection Gets whether the Wii console is accepting connections from Wii Remotes.
WPADSetAcceptConnection Sets whether the Wii console will accept a connection from a Wii Remote.

Rumble Feature

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.
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 Control on the specified channel.
WPADGetSpeakerVolume Gets the volume of the Wii Remote speaker.
WPADSendStreamData Sends audio data to the Wii Remote on the specified channel.
WPADCanSendStreamData Checks whether audio data can be sent to the Wii Remote on the specified channel.

Wii Remote Memory

WPADReadGameData Reads game data stored in the Wii Remote memory.
WPADWriteGameData Saves game data in the Wii Remote memory.
WPADSetGameTitleUtf16 Registers a character string with UTF16 character code in the file information for the game data saved in the Wii Remote memory as the game title.
WPADGetGameTitleUtf16 Gets the game title from the file information for game data saved in the Wii Remote memory.
WPADGetGameDataTimeStamp Gets the saved date/time stamp from the file information for game data saved in the Wii Remote memory.

Config

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 placed above or below the television.
WPADClearPortMapTable Clears the mapping table for the Wii Remote's External Extension Connector. * Eliminated.

Debug

WPADAttachDummyExtension Changes the Wii Remote device type for the specified channel without actually plugging in an external extension controller to the Wii Remote assigned to the specified channel. Note: Only the debug version of the library can be called.
WPADDetachDummyExtension For the Wii Remote on the specified channel, changes the device type to WPAD_DEV_CORE. Note: Only the debug version of the library can be called.

Types and Structures

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



CONFIDENTIAL