#include <revolution/wpad.h> #define WPAD_CLEAR_EVT_START 0 #define WPAD_CLEAR_EVT_DONE 1 typedef void (*WPADClearDeviceCallback) ( s32 result ); WPADClearDeviceCallback *WPADSetClearDeviceCallback( WPADClearDeviceCallback callback );
| callback | Sets the callback called when the SYNCHRO is pressed for more than 10 seconds and when delete all process is completed. |
|---|
A pointer to the previously set callback.
Sets the callback called when the SYNCHRO is pressed for more than 10 seconds and when delete all process is completed. If no callback has been set, WPADStartClearDevice is automatically called.
One of the WPAD_CLEAR_EVT_* set is passed as the result argument for the callback function.
| WPAD_CLEAR_EVT_START | The SYNCHRO on the Wii console was pressed for more than 10 seconds. |
|---|---|
| WPAD_CLEAR_EVT_DONE | Full deletion has ended. |
2006/06/19 Initial version.
CONFIDENTIAL