KPADSetConnectCallback

Syntax

#include <revolution/kpad.h>

WPADConnectCallback KPADSetConnectCallback( s32 chan, WPADConnectCallback callback );

Arguments

chan One of the WPAD_CHANn values.
callback A connection notification callback for applications that is called after the internal connection notification callback of the KPAD library is processed.

Return Values

Pointer to the most recently registered callback function.

Description

Registers a communication notification callback for applications. If NULL is specified, the application callback is not called until reconfiguration.

The KPAD Library uses the WPAD library's connection notification callback. For this reason, the application cannot call a WPADSetConnectCallback function that controls the WPAD library connection notification callback. Please use this function instead.

Note: Be aware that the callback registered through this function will not be released unless you either release it by specifying NULL for this function's argument or call the KPADShutdown function. Controller connection/disconnection will not release the callback.

See Also

WPADSetConnectCallback
KPADShutdown

Revision History

2009/10/21 Deleted text regarding KPADOld.
2008/12/15 Changed the return value from void to WPADConnectCallback.
2008/04/17 Initial version.


CONFIDENTIAL