WPADSetAcceptConnection

C Specification

#include <revolution/wpad.h>

BOOL WPADSetAcceptConnection( BOOL accept );

Arguments

Whether or not 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 in 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 registration procedure, get the SYNCHRO button event using WPADSetSyncDeviceCallback and be sure you do not call WPADStartSyncDevice even if SYNCHRO is pressed.

See Also

WPAD Functions
WPADGetStatus, WPADSetSyncDeviceCallback, WPADStartSyncDevice, WPADGetAcceptConnection

Revision History

2006/10/23 Added a description of the registration procedure.
2006/09/27 Added a description of times when the API and settings cannot be changed.
2006/09/06 Initial version.


CONFIDENTIAL