#include <revolution/wpad.h>
#define WPAD_CHAN0 0
#define WPAD_CHAN1 1
#define WPAD_CHAN2 2
#define WPAD_CHAN3 3
typedef struct WPADAcc
{
s16 x;
s16 y;
s16 z;
}
void WPADGetAccGravityUnit( s32 chan, u32 type, WPADAcc *acc );
chan |
One of WPAD_CHANn values. |
type |
One of WPAD_DEV_*. |
acc |
A pointer that copies the rate of change in units of gravity acceleration. |
None.
Gets the amount of change in units in each axis for the Wii Remote or the motion sensor in a Nunchuk external controller. When WPAD_DEV_CORE is specified for type, it gets the amount of change in units for the Wii Remote's motion sensor; it gets the change for the Nunchuk external controller when WPAD_DEV_FREESTYLE is specified.
06/19/2006 Initial version.