#include <revolution/kpadOld.h> s32 KPADCalibrateDPD( s32 chan );
| chan | One of the WPAD_CHANn values. |
|---|
Returns the number of objects captured by the DPD when this function is called. If the return value is not 2, calibration has not been performed. If the return value is negative, the Wii Remote is not in a horizontal position or is being moved too much.
This function sets the horizontal state of each Wii Remote. If it is called when the Wii Remote is held horizontally and pointed at the Sensor Bar, values for the pos and horizon member variables of the KPADStatus structure will be calculated by treating this state as horizontal. The state has no effect on calculations of the acc member. This function is used for reset only when the Wii Remote is held horizontally and when only two sensors on the Sensor Bar are detected. The function does not have to be called, except when the Sensor Bar placed on the TV set is extremely uneven or the accelerometer values are significantly off.
None.
2006/10/25 Changed the name to KPADOld library, beginning with Revolution SDK 2.3.
2006/06/19 Changed the product name from tentative to official.
2006/03/01 Initial version.
CONFIDENTIAL