WPADSetAcceptConnection

Syntax

#include <revolution/wpad.h>

BOOL WPADSetAcceptConnection( BOOL accept );

Arguments

accept Whether to accept a connection from a Wii Remote.

Return Values

If the configuration was changed, the function returns TRUE. If not, FALSE is returned.

Description

Sets whether the Wii console will accept connections from Wii Remotes. In the initial state, the Wii console will accept connections.

This function cannot change settings if it is called at library initialization or during the close process.

Note that refusing a connection using this function does not cancel any of the current Wii Remote connections. This means that even if the application is set to refuse connections after the first one, two units may become connected if a connection process is run from two Wii Remotes at the same time.

Even if connections are disabled using this function, note that the registration procedure is not prohibited. To prohibit the pairing procedure, get the SYNCHRO event using the WPADSetSyncDeviceCallback function and be sure you do not call the WPADStartSyncDevice function even if the SYNCHRO is pressed.

See Also

WPADGetStatus, WPADSetSyncDeviceCallback, WPADStartSyncDevice, WPADGetAcceptConnection

Revision History

2007/09/18 Changed the format of the argument list.
2006/10/23 Added a description of the pairing procedure.
2006/09/27 Changed the function, and explained when the settings cannot be changed.
2006/09/06 Initial version.


CONFIDENTIAL