TftTouchScreenReadValues()

Library Description ›› Touch ››
 visits
Parent Previous Next

Syntax

TftTouchScreenReadValues(), Bit

Overview

Return value

— Valid coordinates

This procedure reads and returns the raw touch ADC coordinates. 


The coordinates are stored in three temporary global variables: wTftTouchZ, wTftTouchX, and wTftTouchY, which correspond to the Z, X, and Y axes of the touch screen.


The Return Bit indicates whether the readouts are within the screen’s width and height, or at least 10 points from the ADC's minimum and maximum values.
This is useful for handling border-line readouts where the converted results may be less accurate or affected by ADC glitches.


Note that wTftTouchZ, wTftTouchX, and wTftTouchY are temporary variables and remain valid only immediately after calling the procedure.

Example

TftTouchScreenReadValues()

Created with the Personal Edition of HelpNDoc: Effortlessly upgrade your WinHelp HLP help files to CHM with HelpNDoc