#include <cafe/pads/wpad/wpad.h>

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3

BOOL WPADDetachDummyExtension( s32 chan );


chan One of the WPAD_CHANn values.

Return Values

If the device type is restored successfully to WPAD_DEV_CORE, returns TRUE; otherwise, returns FALSE.


For the Wii remote on the specified channel, changes the device type to WPAD_DEV_CORE. If the device type has been changed with the WPADAttachDummyExtension function, use this function to restore the device type to its original status.

Because this function is used for debugging applications, it works only with the debug version library. It does not work with the release version library, where FALSE is always the return value.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Production code Do not call this function in production code. It is available only for debugging purposes.
Multiple Cores Do not call this function from more than one Core.

See Also


Revision History

2013-05-08 Automated cleanup pass.
2007-05-02 Changed so that FALSE is always returned with the release version.
2007-04-18 Initial version.