Avoir sending nil values as mouse coords
This commit is contained in:
parent
0c2629ada1
commit
d32ef8ef0a
2
main.lua
2
main.lua
@ -71,5 +71,5 @@ function love.mousepressed(x,y,button,istouch,presses)
|
|||||||
if game.OS ~= "Horizon" then
|
if game.OS ~= "Horizon" then
|
||||||
x,y = push:toGame(x,y)
|
x,y = push:toGame(x,y)
|
||||||
end
|
end
|
||||||
game:MouseCallback(x,y,presses)
|
if x~=nil and y~=nil then game:MouseCallback(x,y,presses) end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user