WPADSetAcceptConnection DEPRECATED

Syntax

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

BOOL WPADSetAcceptConnection( BOOL accept );

Parameters

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

THIS FUNCTION IS DEPRECATED. USE WPADDisableBluetooth INSTEAD.

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

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

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, 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.

Do Not Call From

Deprecated Do not call this function in new code.
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.

See Also

WPADDisableBluetooth
WPADGetStatus
WPADSetSyncDeviceCallback
WPADStartSyncDevice
WPADGetAcceptConnection

Revision History

2013/05/08 Automated cleanup pass.
2013/04/05 Deprecated.
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