Adding TOUCHSCREEN_XY_INVERTED define to the calibration function.

This commit is contained in:
mobyfab 2012-11-10 17:10:19 +01:00
parent 5f90362261
commit 1ba2539b6c

View File

@ -324,9 +324,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++;
}
}