Code: Select all
function love.draw()
love.graphics.print(("%d %d"):format(love.mouse.getPosition()))
end
Calling love.mouse.setPosition(500, 500) makes it show 500, 500 instead, but the cursor does not move to that position. love.mouse.setPosition does never actually move the cursor on my system.
Code: Select all
function love.draw()
love.graphics.print(("%d %d"):format(love.mouse.getPosition()))
love.mouse.setPosition(500, 500) -- does not move mouse cursor to 500, 500
end
Code: Select all
$ uname -a
Linux deb9 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
It's a minor problem, but a GUI element at 0, 0 assumes it's being hovered, even though the cursor is pointing at a different element when the game starts.