VPADCalcTPCalibrationParam

Syntax

#include <cafe/vpad.h>

s16 VPADCalcTPCalibrationParam( VPADTPCalibrationParam* param,
                                u16 rawX1, u16 rawY1, u16 x1, u16 y1, 
                                u16 rawX2, u16 rawY2, u16 x2, u16 y2 );

Parameters

param Pointer used for storing the results of the calibration parameters.
rawX1, rawY1 Raw touch panel values acquired at coordinate 1 (0 – 4095).
x1, y1 Screen coordinates for coordinate 1.
rawX2, rawY2 Raw touch panel values acquired at coordinate 2 (0 – 4095).
x2, y2 Screen coordinates for coordinate 2.

Return Values

None.

Description

Calculates calibration parameters that are based on coordinates of two points. Do not use the same x or y values as parameters for coordinates 1 and 2.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADSetTPCalibrationParam
VPADGetTPCalibrationParam
VPADGetTPCalibratedPoint

Revision History

2013-05-08 Automated cleanup pass.
2011-03-30 Initial version.


CONFIDENTIAL