commit
800869979f
1 changed files with 6 additions and 1 deletions
|
@ -325,9 +325,14 @@ calibrate:
|
|||
while(j < MAX_CAL_SAMPLES) {
|
||||
if(tsPressed()) {
|
||||
/* We have valid pointer data */
|
||||
|
||||
#if TOUCHSCREEN_XY_INVERTED == TRUE
|
||||
py += _tsReadRealX();
|
||||
px += _tsReadRealY();
|
||||
#else
|
||||
px += _tsReadRealX();
|
||||
py += _tsReadRealY();
|
||||
|
||||
#endif
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue