mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 02:52:18 +00:00
Made lurker.onerror() release the mouse
This commit is contained in:
@@ -95,6 +95,10 @@ function lurker.onerror(e, nostacktrace)
|
||||
end
|
||||
love.update = lurker.update
|
||||
|
||||
-- Release mouse
|
||||
local setgrab = love.mouse.setGrab or love.mouse.setGrabbed
|
||||
setgrab(false)
|
||||
|
||||
local stacktrace = nostacktrace and "" or
|
||||
lume.trim((debug.traceback("", 2):gsub("\t", "")))
|
||||
local msg = lume.format("{1}\n\n{2}", {e, stacktrace})
|
||||
|
Reference in New Issue
Block a user