diff --git a/main.lua b/main.lua index 4c5a21b..21e245f 100644 --- a/main.lua +++ b/main.lua @@ -115,8 +115,8 @@ function love.draw() -- end love.graphics.setColor(0, 0, 0, 0.8) - love.graphics.rectangle("fill", 10, 445, 200, 30) - drawText("X: "..(LAST_X_POSITION or "-").."; Y: "..(LAST_Y_POSITION or "-"), 10, 455, 200, "left") + love.graphics.rectangle("fill", 10, 445, 400, 30) + drawText("X: "..(LAST_X_POSITION or "--------").."; Y: "..(LAST_Y_POSITION or "--------"), 10, 455, 400, "left") love.graphics.pop() end @@ -156,8 +156,8 @@ function love.touchreleased(id,x,y) local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y) if not VCTRL.release(id) then SCENE:onInputRelease{type = "touch", x = x, y = y, dx = 0, dy = 0, id = id} + LAST_X_POSITION, LAST_Y_POSITION = x, y end - LAST_X_POSITION, LAST_Y_POSITION = x, y end function love.keypressed(key, scancode)