2025-02-04 02:08 AM
Dear Community,
We have seen many threads asking whether TouchGFX supports multitouch. To address this question, I am sharing an application running on the STM32H7S78-DK where multitouch is supported, allowing you to rotate and zoom a texture mapper. This application is compatible with TouchGFX version 4.24.2.
So, yes, TouchGFX can work with multitouch. However, our TouchGFX Board Support Packages (TBS) are not designed to work with multitouch by default. This is because the behavior of additional touches on the screen depends on your specific application. For instance, if you have multiple widgets on your screen, it is unpredictable to us how the application will react to multitouch. Will it change one widget, the entire screen, zoom, move a widget, or rotate? These behaviors are application-specific.
If you'd like to understand how we did in the shared project, we invite you to look at the STM32TouchController.cpp file, particularly the sampleTouch() function. In this function, we check the number of touches on the screen and read their coordinates. These coordinates, along with other variables, are then passed to the TouchGFX application through the Model (Touch_Point Model::getTouchPoint()) as usual.
We know that the application has room for improvement, our goal is just to provide a quick example and show that multitouch is supported.
We hope it will help some of you :)
The TouchGFX Team.