How can i find the event.x and event.y , when my mouse pointer is moved on the screen . When it touch in some place i can find , but it dragged over screen i want to find the events. Is there any solution . Pls send me replies quickly .
How do you make use of this functionality on a mobile device?
i am checking the whether selected images are same or not, if same i am deleting it. its just like " JELLY SPLASH" .
[lua]
local function onTouch( event )
if event.phase == “moved” then
print( event.x, event.y )
end
end
Runtime:addEventListener( “touch”, onTouch )
[/lua]
http://docs.coronalabs.com/daily/api/event/touch/index.html
Hope that helps.
How do you make use of this functionality on a mobile device?
i am checking the whether selected images are same or not, if same i am deleting it. its just like " JELLY SPLASH" .
[lua]
local function onTouch( event )
if event.phase == “moved” then
print( event.x, event.y )
end
end
Runtime:addEventListener( “touch”, onTouch )
[/lua]
http://docs.coronalabs.com/daily/api/event/touch/index.html
Hope that helps.