mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
add mouse cursors
This commit is contained in:
@@ -67,6 +67,11 @@ function Input:handleMove (x, y)
|
||||
oldTarget = previousWidget,
|
||||
x = x, y = y
|
||||
})
|
||||
if widget.cursor then
|
||||
love.mouse.setCursor(love.mouse.getSystemCursor(widget.cursor))
|
||||
else
|
||||
love.mouse.setCursor()
|
||||
end
|
||||
self.previousMoveWidget = widget
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user