You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the resolution of my touch input reveived from evdev does not match the resolution of my display.
With the following patch it would be possible to define a custom input resolution. Every position read from evdev would be scaled to the display resolution.
index 449796c..2090830 100644
--- a/b/lv_drv_conf_templ.h+++ b/a/lv_drv_conf_templ.h@@ -207,6 +207,11 @@
#define USE_EVDEV 0
#if USE_EVDEV
#define EVDEV_NAME "/dev/input/event0" /*You can use the "evtest" Linux tool to get the list of devices and test them*/
+#define SCALE_EVDEV 0 /* Scale input, e.g. if touchscreen resolution does not match display resolution */+#if SCALE_EVDEV+#define SCALE_EVDEV_HOR_RES (4096) /* Horizontal resolution of touchscreen */+#define SCALE_EVDEV_VER_RES (4096) /* Vertical resolution of touchscreen */+#endif
#endif
The text was updated successfully, but these errors were encountered:
Hi,
the resolution of my touch input reveived from evdev does not match the resolution of my display.
With the following patch it would be possible to define a custom input resolution. Every position read from evdev would be scaled to the display resolution.
The text was updated successfully, but these errors were encountered: