Adding TOUCHSCREEN_XY_INVERTED define to the calibration function.
parent
5f90362261
commit
1ba2539b6c
|
@ -324,9 +324,14 @@ calibrate:
|
||||||
while(j < MAX_CAL_SAMPLES) {
|
while(j < MAX_CAL_SAMPLES) {
|
||||||
if(tsPressed()) {
|
if(tsPressed()) {
|
||||||
/* We have valid pointer data */
|
/* We have valid pointer data */
|
||||||
|
|
||||||
|
#if TOUCHSCREEN_XY_INVERTED == TRUE
|
||||||
|
py += _tsReadRealX();
|
||||||
|
px += _tsReadRealY();
|
||||||
|
#else
|
||||||
px += _tsReadRealX();
|
px += _tsReadRealX();
|
||||||
py += _tsReadRealY();
|
py += _tsReadRealY();
|
||||||
|
#endif
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue