#include <revolution/wpad.h> #define WPAD_CHAN0 0 #define WPAD_CHAN1 1 #define WPAD_CHAN2 2 #define WPAD_CHAN3 3 #define WPAD_SYNC_TYPE_STD 0 #define WPAD_SYNC_TYPE_SMP 1 s32 WPADGetSyncType( s32 chan, u8 *type );
| chan | One of the WPAD_CHANn values. |
|---|---|
| type | A pointer to the variable that copies the pairing type of the Wii Remote. |
Returns the error status.
Error statuses are defined with the following macro constants.
WPAD_ERR_NONE The pairing type has been retrieved normally. WPAD_ERR_NO_CONTROLLER The Wii Remote is not connected. The type variable does not store a valid pairing type (undefined).
Gets the pairing type of the Wii Remote on the specified channel.
Registration types are defined using the following macro constants.
WPAD_SYNC_TYPE_STD Device paired with the Wii console. WPAD_SYNC_TYPE_SMP Simple-paired device. Pairing information is deleted when the game restarts.
None.
2006/09/06 Initial version.
CONFIDENTIAL