The reverse functionality based on doing thing like:
# define EVDEV_CALIBRATE 1 /*Scale and offset the touchscreen coordinates by using maximum and minimum values for each axis*/
# if EVDEV_CALIBRATE
# define EVDEV_HOR_MIN 2000 /*to invert axis swap EVDEV_XXX_MIN by EVDEV_XXX_MAX*/
# define EVDEV_HOR_MAX 0 /*"evtest" Linux tool can help to get the correct calibraion values>*/
# define EVDEV_VER_MIN 2000
# define EVDEV_VER_MAX 0
# endif /*EVDEV_CALIBRATE*/
#endif /*USE_EVDEV*/
Does not work anymore.
I have a screen that I have rotated 180 defgees and when using the current lib with:
Hi,
After the introduction of code based on: https://github.com/lvgl/lv_drivers/pull/251
The reverse functionality based on doing thing like:
Does not work anymore.
I have a screen that I have rotated 180 defgees and when using the current lib with:
Then all touch points seem to register as 0.
Using the following:
It all works as expected.
Related forum post: https://forum.lvgl.io/t/how-to-invert-x-and-y-axises-not-swap-them/12866/2
Any chance this change can check if a mouse is involved as apposed to a touch screen?
Thanks!