2021-11-03 04:50 AM
Im unsure how TouchGFX know if the current touch event is a "click" or a "long press" or a swipe - if it only gets the current position?
Do I need another functionality to accomplish long touches and swipe/drag&drop events?
2021-11-10 09:22 AM
I think you need to do if check on sample touch in the tick() and perform a counter if true, and that timer will determine if it's tap and release or tap and hold. As for the swipe, you can do a calculation of x when finger is first on the screen and difference it by x of when the finger is last on screen.