WPADSetClearDeviceCallback

Syntax

#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 );

Arguments

callback Sets the callback called when the SYNCHRO is pressed for more than 10 seconds and when delete all process is completed.

Return Values

A pointer to the previously set callback.

Description

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_STARTThe SYNCHRO on the Wii console was pressed for more than 10 seconds.
WPAD_CLEAR_EVT_DONEFull deletion has ended.

See Also

WPADStartClearDevice

Revision History

2006/06/19 Initial version.


CONFIDENTIAL