#include <cafe/pads/wpad/wpad.h> BOOL WPADSetAcceptConnection( BOOL accept );
|accept||Whether to accept a connection from a Wii remote.|
If the configuration was changed, the function returns
TRUE. If not,
FALSE is returned.
THIS FUNCTION IS DEPRECATED. USE
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
WPADSetSyncDeviceCallback function and be sure you do not call
WPADStartSyncDevice function even if the
SYNCHRO is pressed.
|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.|
2013/05/08 Automated cleanup pass.
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.