#include <revolution/kpad.h> void KPADSetReviseMode( s32 chan, BOOL sw );
| chan | One of the WPAD_CHANn values. |
|---|---|
| sw | Specify TRUE to apply angular correction, or FALSE to not apply it. |
None.
Specifies whether to apply, in advance, the angular correction to the values that are returned from the Nunchuk Motion Sensor and are obtainable with KPADEXStatus. Be aware that when the correction is set to ON, it is applied after clamping the Motion Sensor measurement range.
The Nunchuk Motion Sensor is aligned parallel to the plane of operation of the Nunchuk Control Stick. When the Nunchuk is held as shown in the following diagram, the Motion Sensor indicates horizontal orientation.
To make the Nunchuk as easy to handle as the Wii Remote, this function adjusts the Motion Sensor values such that the Nunchuk indicates horizontal alignment when held as shown in the diagram below. This is accomplished by rotating the Motion Sensor values counterclockwise (when facing to the positive X-direction) around the X-axis of the Motion Sensor's coordinate system. When this is performed, the exact angle of rotation can be obtained with the KPADGetReviseAngle function.
KPADReviseAcc, KPADGetReviseAngle
2007/05/21 Initial version.
CONFIDENTIAL