How can I imitate touch event?

sarkis

Member
Licensed User
Longtime User
HI all,
I have 2 questions.
1.How can I imitate touch event?
2.How can I "disable touch event" for particular object like panel or something else?
I have no phone yet ,so how can I debug the touch event?
Thank for answers
 

DouglasNYoung

Active Member
Licensed User
Longtime User
Sarkis,
Presumably you are running on an emulator - It should do everything that a 'real' Android will do, albeit a bit slower, including a touch event. Alternatively you could just call the Object_Touch subroutine directly.

You can disable the panel with object.enabled = false, but that will disable the whole object not just the 'touch' event. To disable just one event you could set a global variable and within the touch event handler don't do anything if the variable is 'true'.

Douglas
 
Upvote 0
Top