WPADGetAccGravityUnit

Syntax

#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 );

Arguments

chan One of the WPAD_CHANn values.
type One of the WPAD_DEV_*.
acc Pointer used to copy X, Y, Z axis calibration values.

Return Values

None.

Description

Gets the calibration data for each axis of the Motion Sensor on the specified channel for either the Wii Remote or Nunchuk. This is the Motion Sensor value when 1G (gravity) of force is applied to each of the X, Y, and Z axes.

See Also

None.

Revision History

2007/02/13 Changed the Description to use the term "calibration".
2006/06/19 Initial version.


CONFIDENTIAL