WPADSetSimpleSyncCallback

C Specification

#include <revolution/wpad.h>

#define WPAD_SYNC_EVT_BUSY        -1
#define WPAD_SYNC_EVT_START        0
#define WPAD_SYNC_EVT_DONE         1

typedef void (*WPADSyncDeviceCallback) ( s32 result, s32 num );

WPADSyncDeviceCallback WPADSetSimpleSyncCallback( WPADSyncDeviceCallback callback )

Arguments

callback Sets the callback to be called when simple registration has ended.

Return Values

A pointer to the previously set callback.

Description

Sets the callback to be called when simple registration has ended.

One of the WPAD_SYNC_EVT_* set is passed as the result argument for the callback function.

WPAD_SYNC_EVT_BUSYOther processes (including registration or simple registration) are currently running.
WPAD_SYNC_EVT_DONESimple registration has ended. The number of the Wii Remote registered is passed to num.

See Also

WPAD Functions
WPADStartSimpleSync
WPADStopSimpleSync

Revision History

08/15/2006 Initial version.


CONFIDENTIAL