KPADGetMplsStatus

Syntax

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

u8 KPADGetMplsStatus( s32 chan );

Parameters

chan One of the WPAD_CHANn values.

Return Values

One of the WPAD_MPLS_* values.

Description

Calls the WPAD lib to determine if a started Wii MotionPlus is plugged into the specified Wii remote, and if so, whether other controllers are connected.

A value of WPAD_MPLS_OFF is returned if a Wii MotionPlus is not plugged into the Wii remote or if the Wii MotionPlus has not finished being started. WPAD_MPLS_STD is returned when the Wii MotionPlus is started and only the Wii MotionPlus is running. WPAD_MPLS_FS is returned when the Wii MotionPlus and a Nunchuk are running. WPAD_MPLS_CL is returned when the Wii MotionPlus and a Classic Controller are running.

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.
Multiple Cores Do not call this function from more than one Core.

Revision History

2013-05-08 Automated cleanup pass.
2012-06-28 Removed deprecated WPADGetMplsStatus function.
2008-12-04 Added an explanation of WPAD_MPLS_FS and WPAD_MPLS_CL.
2008-07-22 Initial version.


CONFIDENTIAL