#include <revolution/kpad.h> void KPADEnableMpls( s32 chan, u8 mode );
| chan | One of the WPAD_CHANn values. |
|---|---|
| mode | WPAD_MPLS_STD, WPAD_MPLS_FS, or WPAD_MPLS_CL. |
None.
Calling this function issues a request that the Wii MotionPlus operate in the operational mode specified by mode. The Wii MotionPlus cannot change operational modes while running. Therefore, if the Wii MotionPlus has already been operating, first change to bypass mode and then change to the specified operational mode. The library attempts to issue an operational-mode-change request if the Wii MotionPlus operational mode differs from the mode specified when data was received from the Wii Remote. If issuing the request fails, the system tries again the next time data is received.
The library attempts to issue this request while it is checking the mode of the Wii MotionPlus, so do not call the WPADControlMpls function directly when using this function.
Note: The state when HOME Menu is called
Because the KPADEnableMpls function continues sending the Start command to the Wii Remote until the Wii MotionPlus enters the specified operating mode, the system will not be able to send any audio output commands to the Wii Remote if the Wii MotionPlus is unplugged while KPADEnableMpls is executing. Consequently, if you activate the HOME Menu and unplug the Wii MotionPlus while KPADEnableMpls is executing, the Wii Remote speaker will not be able to output any audio.
To avoid this problem, be sure to stop the Wii MotionPlus using the KPADDisableMpls function before activating the HOME Menu.
KPADDisableMpls
WPADControlMpls
2010/06/23 Added text about state where audio output commands cannot be sent to Wii Remote speaker.
2008/12/04 Deleted a description of the KPADSetConfig function.
Added WPAD_MPLS_CL as a selection for mode.
2008/07/22 Initial version.
CONFIDENTIAL