类型 数字 事件 touch 修订版 版本 2024.3703 关键字 touch, y
接触的屏幕坐标系中的y位置。
local circle = display.newCircle( 50, 50, 100 )
circle:setFillColor( 0, 1, 1 )
local function moveCircle( event )
circle.x = event.x
circle.y = event.y
end
Runtime:addEventListener( "touch", moveCircle )