From 810852b41be5df66fd7b80f8af69f8b579d142ea Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 28 Jul 2023 10:17:01 +0200 Subject: [PATCH] docs(disp): metined that rotation rotates the touch coordinates too related to #4409 --- docs/porting/display.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/porting/display.md b/docs/porting/display.md index f69eb1086..015b902d4 100644 --- a/docs/porting/display.md +++ b/docs/porting/display.md @@ -204,6 +204,8 @@ The default rotation of your display when it is initialized can be set using the Display rotation can also be changed at runtime using the `lv_disp_set_rotation(disp, rot)` API. +If you enable rotation the coordinates of the pointer input devices (e.g. touchpad) will be rotated too. + Note that when using software rotation, you cannot use neither `direct_mode` nor `full_refresh` in the driver. When using either of these, you will have to rotate the pixels yourself e.g. in the `flush_cb`. Support for software rotation is a new feature, so there may be some glitches/bugs depending on your configuration. If you encounter a problem please open an issue on [GitHub](https://github.com/lvgl/lvgl/issues).