Custom Cursors on OS X
Posted: Sat Feb 09, 2013 2:51 pm
Hi,
I'm trying to get a custom cursor working on OS X but nothing seems to make my current cursor disappear.
Does it work on OS X? It looks like no.
Here's a little bit of code:
This should simply replace the cursor when I press delete, but it doesn't.
Any idea or suggestions?
Thanks!
I'm trying to get a custom cursor working on OS X but nothing seems to make my current cursor disappear.
Does it work on OS X? It looks like no.
Here's a little bit of code:
Code: Select all
function shop.keypressed(args)
if args.key == "delete" then
isDestroyMode = true
love.mouse.setGrab(true)
love.mouse.isVisible(false)
end
end
function shop.draw()
if isDestroyMode then
local x, y = love.mouse.getScaledPosition()
love.graphics.draw(destroyCursor, x, y)
end
end
Any idea or suggestions?
Thanks!