#include <revolution/wpad.h>
#define WPAD_CHAN0 0
#define WPAD_CHAN1 1
#define WPAD_CHAN2 2
#define WPAD_CHAN3 3
#define WPAD_FMT_CORE 0
#define WPAD_FMT_CORE_ACC 1
#define WPAD_FMT_CORE_ACC_DPD 2
#define WPAD_FMT_FREESTYLE 3
#define WPAD_FMT_FREESTYLE_ACC 4
#define WPAD_FMT_FREESTYLE_ACC_DPD 5
#define WPAD_FMT_CLASSIC 6
#define WPAD_FMT_CLASSIC_ACC 7
#define WPAD_FMT_CLASSIC_ACC_DPD 8
#define WPAD_FMT_CORE_ACC_DPD_FULL 9
u32 WPADGetDataFormat( s32 chan );
chan |
One of the WPAD_CHANn values. |
One of the WPAD_FMT_*.
Obtains the data format of the received data on the specified channel. The default setting is the data format for the Wii Remote (WPAD_FMT_CORE).
Received data formats are defined with the macro constants shown below.
WPAD_FMT_COREWii Remote data format ( WPADStatusstructure). Only button information is valid.
Note: This is the default type.WPAD_FMT_CORE_ACCWii Remote data format ( WPADStatusstructure). The button and motion sensor information is valid.WPAD_FMT_CORE_ACC_DPDWii Remote data format ( WPADStatusstructure). The button, motion sensor, and pointer information is valid. The pointer has valid size and coordinate data.WPAD_FMT_FREESTYLENunchuk Style data format type ( WPADFSStatusstructure). For the Wii Remote, only the button information is valid.WPAD_FMT_FREESTYLE_ACCNunchuk Style data format type ( WPADFSStatusstructure). For the Wii Remote, the button and motion sensor information is valid.WPAD_FMT_FREESTYLE_ACC_DPDNunchuk Style data format type ( WPADFSStatusstructure). The Wii Remote button, motion sensor, and pointer information is valid. However, only the coordinate data is valid for the pointer.WPAD_FMT_CLASSICClassic Style data format type ( WPADCLStatusstructure). For the Wii Remote, only the button information is valid.WPAD_FMT_CLASSIC_ACCClassic Style data format type ( WPADCLStatusstructure). For the Wii Remote, the button and motion sensor information is valid.WPAD_FMT_CLASSIC_ACC_DPDClassic Style data format type ( WPADCLStatusstructure). The Wii Remote button, motion sensor, and pointer information is valid. However, only the coordinate data is valid for the pointer.WPAD_FMT_CORE_ACC_DPD_FULLWii Remote extended data format (the WPADStatusExstructure). The Wii Remote button, motion sensor, and pointer information is valid. For the pointer, the coordinates data, size, object radius, pixel value, and range are valid. However, the data rate is half that of normal (roughly 100 samples per second).
WPAD Functions
WPADSetDataFormat, WPADStatus, WPADFSStatus, WPADCLStatus, WPADStatusEx
2006/08/15 Added the extended data format
2006/06/19 Changed the name of the external extended controller; added data format
2005/10/27 Changed the layout.
2005/10/20 Initial version.
CONFIDENTIAL