Add ability to enable/disable system cursors

This commit is contained in:
Kenny Shields 2014-10-30 19:34:05 -04:00
parent cc52f38f38
commit 11264bb14e

View File

@ -22,6 +22,7 @@ loveframes.config["DEFAULTSKIN"] = "Blue"
loveframes.config["ACTIVESKIN"] = "Blue" loveframes.config["ACTIVESKIN"] = "Blue"
loveframes.config["INDEXSKINIMAGES"] = true loveframes.config["INDEXSKINIMAGES"] = true
loveframes.config["DEBUG"] = false loveframes.config["DEBUG"] = false
loveframes.config["ENABLE_SYSTEM_CURSORS"] = false
-- misc library vars -- misc library vars
loveframes.state = "none" loveframes.state = "none"
@ -84,6 +85,7 @@ function loveframes.update(dt)
end end
end end
if loveframes.config["ENABLE_SYSTEM_CURSORS"] then
local hoverobject = loveframes.hoverobject local hoverobject = loveframes.hoverobject
local arrow = love.mouse.getSystemCursor("arrow") local arrow = love.mouse.getSystemCursor("arrow")
local curcursor = love.mouse.getCursor() local curcursor = love.mouse.getCursor()
@ -163,6 +165,7 @@ function loveframes.update(dt)
love.mouse.setCursor(arrow) love.mouse.setCursor(arrow)
end end
end end
end
loveframes.collisions = {} loveframes.collisions = {}
base:update(dt) base:update(dt)