x12s: move touch panel inversion to LVGL driver

This commit is contained in:
Raphael Coeffic
2022-06-25 16:09:04 +02:00
committed by Raphael Coeffic
parent f1f8249205
commit 1f8072374c
3 changed files with 9 additions and 5 deletions
+5
View File
@@ -177,6 +177,11 @@ extern "C" void touchDriverRead(lv_indev_drv_t *drv, lv_indev_data_t *data)
TouchState st = touchPanelRead();
#if defined(TOUCH_PANEL_INVERTED) && !defined(SIMU)
st.x = LCD_W - st.x;
st.y = LCD_H - st.y;
#endif
// no touch input if backlight is disabled
if (!isBacklightEnabled()) {
reset_inactivity();