WPADGetAccGravityUnit

Syntax

#include <cafe/pads/wpad/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;
} WPADAcc;

void WPADGetAccGravityUnit( s32 chan, u32 type, WPADAcc *acc );

Parameters

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.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

Revision History

2014/03/05 Fixed WPADAcc struct.
2013/05/08 Automated cleanup pass.
2007/02/13 Changed the Description to use the term "calibration".
2006/06/19 Initial version.


CONFIDENTIAL