WPADRead

C Specification

      
#include <revolution/wpad.h>

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3

void WPADRead( s32 chan, void *status );
      
    

Arguments

chan One of WPAD_CHANn values.
status Pointer to the WPADStatus structure. This structure must correspond to the data format specified by the WPADSetDataFormat function. If the status of the Wii Remote is valid, the err member holds WPAD_ERR_NONE;  otherwise it holds another error status.

Return Values

None.

Description

Obtains the most recent status of the Wii Remote on the specified channel. This can be used together with WPADSetAutoSamplingBuf.

See Also

WPAD Functions
WPADSetAutoSamplingBuf
WPADStatus
WPADFSStatus
WPADCLStatus
WPADStatusEx

Revision History

Changed API specs.
08/01/2005 Initial version.


CONFIDENTIAL