#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 *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_BUSY | Other processes (including registration) are currently running. |
WPAD_SYNC_EVT_START | The synchro button on the Wii console was pressed. |
WPAD_SYNC_EVT_DONE | Registration has ended. The number of Wii Remotes registered is passed to num. |
WPAD Functions
WPADStartSyncDevice
06/19/2006 Initial version.