#include <revolution/kpad.h> void KPADSetConnectCallback( s32 chan, WPADConnectCallback callback );
| 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. |
None.
Registers a communication notification callback for applications. When NULL is specified, the callback for applications will not be called until reconfiguration.
Unlike the KPADOld library, the KPAD library uses a WPAD library 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.
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. Connecting or disconnecting the controller will not release the callback.
WPADSetConnectCallback, KPADShutdown
2008/04/17 Initial version.
CONFIDENTIAL