Skip to main content
ATank.1
Associate III
Feb 14, 2024 8:47 AM UTC
Solved

Touch Gestures using resistive touch

Hello,

I plan to use a STM32H745 controller and 7" LCD TFT display with resistive touch. Am using TouchGFX for UI developement. 

My application should support Touch gestures such as swipe and list scroll. 

I already have used capacitive touch in another project with same controller and touchGFX and was able to swipe and scroll seamlessy without any additional implementation

Are these gestures possible with a rsistive touch screen? if yes then can you please provide any sample codes for the same.

Thanks 

Anuj 

 

This topic has been closed for replies.
LouisBBest answer
ST Employee
Feb 15, 2024 10:35 AM UTC

Hello @ATank.1 ,

There's no difference between the capacitive and resistive implementation in TouchGFX. So if your board has the driver for a touch screen, it will work either if it's resistive or capacitive.
There are few examples in TouchGFX Designer that use gestures like the SwipeContainer or the ScrollWheel examples. Also you can check the code of these widgets to see how it works.


I hope it answers your question.
Regards,

Louis BOUDOST Software Engineer | TouchGFX

3 replies

LouisBBest answer
ST Employee
Feb 15, 2024 10:35 AM UTC

Hello @ATank.1 ,

There's no difference between the capacitive and resistive implementation in TouchGFX. So if your board has the driver for a touch screen, it will work either if it's resistive or capacitive.
There are few examples in TouchGFX Designer that use gestures like the SwipeContainer or the ScrollWheel examples. Also you can check the code of these widgets to see how it works.


I hope it answers your question.
Regards,

Louis BOUDOST Software Engineer | TouchGFX
ATank.1
ATank.1Author
Associate III
Feb 22, 2024 3:29 AM UTC

Hello,

Thank you for you reply.

Just to confirm the driver only gives us touch coordinates. The scrolling and swiping is handled by TouchGFX internally?

Thanks

Anuj 

 

ST Employee
Feb 23, 2024 1:24 PM UTC

Hello @ATank.1 ,

Yes, swiping / scrolling / gestures / and all other event are handled by TouchGFX. 

I hope that answer your question,
Regards

Louis BOUDOST Software Engineer | TouchGFX