Page 1 of 1
Android Swipe motions - Solved
Posted: Wed Oct 14, 2015 11:15 am
by DR White
Can someone show me how to detect on an Android:
swipe right
swipe left
swipe up
swipe down
Thanks,
David
Re: Android Swipe motions
Posted: Wed Oct 14, 2015 12:24 pm
by jmburnod
Hi David,
I haven't got experience with android but I think that is the same as iOS.
I use something like this :
Code: Select all
--•• swipe horizontal
local sMslMdX
on mousedown
put the mouseh into sMslMdX
end mousedown
on mouseup
get the mouseh
if it-80 > sMslMdX then
--doMyGoLeft -- or what you want
end if
if it + 80 < sMslMdX then
--doMyGoRight -- or what you want
end if
end mouseup
on mouserelease
mouseup
end mouserelease
Best regards
Jean-Marc
Re: Android Swipe motions - Solved
Posted: Thu Oct 15, 2015 2:11 am
by DR White
Jean-Marc,
That works GREAT!!!
Thanks SOO MUCH,
David