#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 button is pressed for more than 10 seconds and when full deletion is completed. |
A pointer to the previously set callback.
Sets the callback called when the synchro button is pressed for more than 10 seconds and when full deletion 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 button on the Wii console was pressed for more than 10 seconds. |
WPAD_CLEAR_EVT_DONE | Full deletion has ended. |
WPAD Functions
WPADStartClearDevice
2006/06/19 Initial version.
CONFIDENTIAL