VPADGetTPCalibratedPointEx

Syntax

#include <cafe/vpad.h>

typedef enum VPADTPResolution
{
    VPAD_TP_1920x1080,
    VPAD_TP_1280x720,
    VPAD_TP_854x480
} VPADTPResolution ;

void VPADGetTPCalibratedPointEx( s32 chan, VPADTPResolution tpReso,
                                 VPADTPData *disp, const VPADTPData *raw );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
tpReso The resolution setting for the disp.
  • VPAD_TP_1920x1080 : 1920 × 1080
  • VPAD_TP_1280x720 : 1280 × 720
  • VPAD_TP_854x480 : 854 × 480
disp Pointer used for getting values that have been converted to the coordinates designated by the tpReso.
The N pixel border on the outer edge of the Touch Screen cannot accept input.
  • N = 18 ( VPAD_TP_1920x1080 )
  • N = 12 ( VPAD_TP_1280x720 )
  • N = 8 ( VPAD_TP_854x480 )
Any raw input to this area is clamped inside this border.
raw Pointer to the data before conversion.

Return Values

None.

Description

Uses the calibration values that were set by the VPADSetTPCalibrationParam function to convert raw touch panel values to the coordinates designated by the tpReso.

This function also copies touch and validity values.

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

VPADCalcTPCalibrationParam
VPADSetTPCalibrationParam
VPADGetTPCalibrationParam
VPADGetTPCalibratedPoint
VPADTPData

Revision History

2013/05/08 Automated cleanup pass.
2012/12/05 Initial version.


CONFIDENTIAL