diff options
-rw-r--r-- | src/touchpad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/touchpad.c b/src/touchpad.c index e4312bc8..353a4f01 100644 --- a/src/touchpad.c +++ b/src/touchpad.c @@ -162,6 +162,7 @@ uint16_t tpReadX(void) { x = cal.xm * _tpReadRealX() + cal.xn; y = cal.ym * _tpReadRealY() + cal.yn; #endif + switch(gdispGetOrientation()) { case GDISP_ROTATE_0: return x; @@ -193,6 +194,7 @@ uint16_t tpReadY(void) { x = cal.xm * _tpReadRealX() + cal.xn; y = cal.ym * _tpReadRealY() + cal.yn; #endif + switch(gdispGetOrientation()) { case GDISP_ROTATE_0: return y; |