#include <revolution/wpad.h>
#define WPAD_SYNC_EVT_START 0
#define WPAD_SYNC_EVT_DONE 1
typedef void (*WPADSyncDeviceCallback) ( s32 result, s32 num );
WPADSyncDeviceCallback *WPADSetSyncDeviceCallback( WPADSyncDeviceCallback callback )
callback |
Sets the callback called when the synchro button is pressed and when registration is completed. |
A pointer to the previously set callback.
Sets the callback called when the synchro button is pressed and when registration is completed. If no callback is set, WPADStartSyncDevice is automatically called.
One of the WPAD_SYNC_EVT_* set is passed as the result argument for the callback function.
WPAD_SYNC_EVT_START | The synchro button on the Wii console was pressed. |
WPAD_SYNC_EVT_DONE | Registration has ended. The number of Wii Remote registered is passed to num. |
WPAD Functions
WPADStartSyncDevice
2007/07/10 Changed such that WPAD_SYNC_EVT_BUSY is no longer passed to the callback function.
2006/06/19 Initial version.
CONFIDENTIAL