Skip to main content
ATank.1
Associate III
February 14, 2024
Solved

Touch Gestures using resistive touch

  • February 14, 2024
  • 3 replies
  • 1653 views

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.
Best answer by LouisB

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,

3 replies

LouisBBest answer
ST Employee
February 15, 2024

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,

ATank.1
ATank.1Author
Associate III
February 22, 2024

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
February 23, 2024

Hello @ATank.1 ,

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

I hope that answer your question,
Regards