aboutsummaryrefslogtreecommitdiffstats
path: root/halext
diff options
context:
space:
mode:
Diffstat (limited to 'halext')
-rw-r--r--halext/src/touchpad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/halext/src/touchpad.c b/halext/src/touchpad.c
index 5274e350..3539ad32 100644
--- a/halext/src/touchpad.c
+++ b/halext/src/touchpad.c
@@ -74,6 +74,7 @@ static uint16_t _tpReadRealX(void) {
results += tp_lld_read_x();
}
+ // 12-bit
x = (((SCREEN_WIDTH-1) * (results/CONVERSIONS)) / 2048);
return x;
@@ -93,6 +94,7 @@ static uint16_t _tpReadRealY(void) {
results += tp_lld_read_y();
}
+ // 12-bit
y = (((SCREEN_HEIGHT-1) * (results/CONVERSIONS)) / 2048);
return y;