Archive

Monthly Archives: December 2011

You can pretty easily get the X and Y coordinates of a touch event using some code like this:

local function onTouch(event)
     print("POS.X = " .. event.x, "POS.Y = ".. event.y);
end

Runtime:addEventListener("touch",onTouch);

Advertisements
%d bloggers like this: