#include <revolution/wpad.h> #define WPAD_CHAN0 0 #define WPAD_CHAN1 1 #define WPAD_CHAN2 2 #define WPAD_CHAN3 3 #define WPAD_DEV_CORE 0 #define WPAD_DEV_FREESTYLE 1 #define WPAD_DEV_CLASSIC 2 #define WPAD_DEV_UNKNOWN 255 #define WPAD_DEV_NOT_FOUND 253 #define WPAD_DEV_NOT_SUPPORTED 252 #define WPAD_DEV_FUTURE 251 BOOL WPADAttachDummyExtension( s32 chan, u32 type );
| chan | One of the WPAD_CHANn values. |
|---|---|
| type | One of the WPAD_DEV_*. |
Returns TRUE if the device type was successfully changed and FALSE otherwise.
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. Call this function when nothing is inserted in the Wii Remote. No change can be made if an external extension controller is already plugged into the Wii Remote.
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.
2007/05/02 Changed so that FALSE is always returned with the release version.
2007/04/18 Initial version.
CONFIDENTIAL