mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Test
This commit is contained in:
2
main.lua
2
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user