I'm currently working on a project where we use a custom cursor. The problem is that when we use this custom cursor and uses it in fullscreen it is not visible. Since I have two screens I can "de-focus" the project and then the cursor appears when hovering the window. But as soon as I press it it goes away.
I've also figured out that it is present, but it's just not visible, because I can still use it as normal in my application. I just can't see it.
The acctual cursors is being loaded correctly and it all works perfectly for all my project members, except two of us.
We have been searching for everything that could be the reason, but found nothing. We've tried to use the "setVisible" and "setGrabbed" functions but it gives nothing.
Down below I'll post some code snippets from where we use it.
Code: Select all
function RoomManagerUpdate(dt)
if love.mouse.isDown(1)
then love.mouse.setCursor(cursorMousePressed)
else love.mouse.setCursor(cursorDefault)
end
end
function LoadItems()
cursorDefault = love.mouse.newCursor("Graphics/Interfaces/cursor_hand_open.png", 20, 40)
cursorMousePressed = love.mouse.newCursor("Graphics/Interfaces/cursor_hand_grab.png", 20, 40)
cursorHover = love.mouse.newCursor("Graphics/Interfaces/cursor_hand_Point.png", 20, 40)
end