The default error handler resets the mouse cursor now.

This commit is contained in:
Alex Szpakowski
2016-01-05 18:45:20 -04:00
parent f53e0026ab
commit a590cf17aa
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -584,6 +584,9 @@ function love.errhand(msg)
love.mouse.setVisible(true)
love.mouse.setGrabbed(false)
love.mouse.setRelativeMode(false)
if love.mouse.hasCursor() then
love.mouse.setCursor()
end
end
if love.joystick then
-- Stop all joystick vibrations.