flushEvent on Android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
aricco54
Posts: 4
Joined: Sat Feb 01, 2020 8:52 am

flushEvent on Android

Post by aricco54 » Tue Feb 11, 2020 12:24 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2423
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: flushEvent on Android

Post by jmburnod » Tue Feb 11, 2020 4:01 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: flushEvent on Android

Post by jacque » Tue Feb 11, 2020 7:11 pm

Try mobileClearTouches. It doesn't clear everything but might be enough depending on what you need.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

aricco54
Posts: 4
Joined: Sat Feb 01, 2020 8:52 am

Re: flushEvent on Android

Post by aricco54 » Tue Feb 11, 2020 7:44 pm

Hi!

Many many thanks! I used the suggestions and was able to solve my problem!

Best regards
Antonio

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”