#include <cafe/pads/kpad/kpad.h> WPADConnectCallback KPADSetConnectCallback( s32 chan, WPADConnectCallback callback );
|chan||One of the
|callback||A connection notification callback for applications that is called after the internal connection notification callback of the KPAD library is processed.|
Pointer to the most recently registered callback function.
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.
Use this function instead.
NULLfor this function's argument or call the
KPADShutdownfunction. Controller connection/disconnection will not release the callback.
|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.
2009/10/21 Deleted text regarding KPADOld.
2008/12/15 Changed the return value from void to WPADConnectCallback.
2008/04/17 Initial version.