mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Remove id = b (it was there for test)
This commit is contained in:
4
main.lua
4
main.lua
@@ -139,12 +139,12 @@ end
|
|||||||
function love.mousepressed(x, y, b, isTouch, presses)
|
function love.mousepressed(x, y, b, isTouch, presses)
|
||||||
if isTouch then return end
|
if isTouch then return end
|
||||||
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
||||||
SCENE:onInputPress{type = "mouse", x = x, y = y, id = b, presses = presses}
|
SCENE:onInputPress{type = "mouse", x = x, y = y, presses = presses}
|
||||||
end
|
end
|
||||||
function love.mousereleased(x, y, b, isTouch, presses)
|
function love.mousereleased(x, y, b, isTouch, presses)
|
||||||
if isTouch then return end
|
if isTouch then return end
|
||||||
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
||||||
SCENE:onInputRelease{type = "mouse", x = x, y = y, id = b, presses = presses}
|
SCENE:onInputRelease{type = "mouse", x = x, y = y, presses = presses}
|
||||||
end
|
end
|
||||||
function love.mousemoved(x, y, dx, dy, isTouch)
|
function love.mousemoved(x, y, dx, dy, isTouch)
|
||||||
if isTouch then return end
|
if isTouch then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user