This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-21 22:08:10 +07:00
parent c60d235bf5
commit 6cf485e4ba
2 changed files with 9 additions and 11 deletions

View File

@@ -120,10 +120,12 @@ function love.draw()
end
function love.mousepressed(x, y, b, isTouch, presses)
if isTouch then return end
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
SCENE:onInputPress{type = "mouse", x = x, y = y, button = b, presses = presses}
end
function love.mousereleased(x, y, b, isTouch, presses)
if isTouch then return end
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
SCENE:onInputRelease{type = "mouse", x = x, y = y, button = b, presses = presses}
end