Page 1 of 1
flushEvent on Android
Posted: Tue Feb 11, 2020 12:24 pm
by aricco54
Hi!
I want to run an app on Android 9.
Is there a function similar to flushEvent ("mouseUp") that works with Android and touchscreen?
Thank you very much
Antonio
Re: flushEvent on Android
Posted: Tue Feb 11, 2020 4:01 pm
by jmburnod
Hi,
You may use a timer.
Something like that
Code: Select all
local sStarTime
on opencard
put the milliseconds into sStarTime
end opencard
on mouseUp
put the milliseconds into tTime
if tTime > sStarTime +500 then
doSomething
else
--
end if
put the milliseconds into sStarTime
end mouseUp
Best regards
Jean-Marc
Re: flushEvent on Android
Posted: Tue Feb 11, 2020 7:11 pm
by jacque
Try mobileClearTouches. It doesn't clear everything but might be enough depending on what you need.
Re: flushEvent on Android
Posted: Tue Feb 11, 2020 7:44 pm
by aricco54
Hi!
Many many thanks! I used the suggestions and was able to solve my problem!
Best regards
Antonio