WPADDisconnect

Syntax

#include <revolution/wpad.h>

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

void WPADDisconnect( s32 chan );

Arguments

chan One of the WPAD_CHANn values.

Return Values

None.

Description

Ends the connection for the Wii Remote of the specified channel.

The library first turns off the player indicator light, then disconnects. The information for the Wii Remote with the controller number specified in chan is cleared at disconnection.

See Also

None.

Revision History

2008/05/19 Revised the explanation of how the controller number's information is cleared.
2008/04/16 Added that the player indicator light is turned off first.
2006/09/18 Mentioned that the controller number information is cleared.
2006/06/19 Initial version.


CONFIDENTIAL