WPADSetClearDeviceCallback

C Specification

#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 button is pressed for more than 10 seconds and when full deletion is completed.

Return Values

A pointer to the previously set callback.

Description

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

See Also

WPAD Functions
WPADStartClearDevice

Revision History

2006/06/19 Initial version.


CONFIDENTIAL