cancel
Showing results for 
Search instead for 
Did you mean: 

Touch simulation

heyo
Senior

Is it possible to simulate touch? For example I touch one time but executes two touches on same XY? I have one hided image and then I touch list element that image appears and I need to drag it.

1 REPLY 1
GaetanGodart
ST Employee

Hello @heyo ,

1.
I would need some more information to be able to answer you.
It seems you want to click on a list and it will make an image appear on the side?
You do not want to click on the hidden image to make it appear is that correct?

2.
Some of the tools (mixins) you could use on touchGFX are :
 - make an object draggable : it allows the user to move the object by clicking on it and dragging his finger

GaetanGodart_0-1702648654459.png
 - make an object as clickListener : it allows you to get a callback when the object is clicked and it also allows you to get to x and y position of the click, furthermore, you can get this information on a click or a release. You can easily get the difference of position from the click to the release and move your object by that difference using the moveTo function .

Hope this helps.
Don’t hesitate to give us a feedback or give more precisions and tell us if the issue is solved! :smiling_face_with_smiling_eyes:

Gaetan Godart
Software engineer at ST (TouchGFX)