Fixed the default error handler to disable relative mouse mode.

This commit is contained in:
Alex Szpakowski
2015-08-18 22:13:06 -03:00
parent acca06907e
commit 71116807e3
3 changed files with 11 additions and 7 deletions
+1
View File
@@ -581,6 +581,7 @@ function love.errhand(msg)
if love.mouse then
love.mouse.setVisible(true)
love.mouse.setGrabbed(false)
love.mouse.setRelativeMode(false)
end
if love.joystick then
-- Stop all joystick vibrations.