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:
@@ -94,6 +94,10 @@ function lurker.onerror(e, nostacktrace)
|
|||||||
love[v] = function() end
|
love[v] = function() end
|
||||||
end
|
end
|
||||||
love.update = lurker.update
|
love.update = lurker.update
|
||||||
|
|
||||||
|
-- Release mouse
|
||||||
|
local setgrab = love.mouse.setGrab or love.mouse.setGrabbed
|
||||||
|
setgrab(false)
|
||||||
|
|
||||||
local stacktrace = nostacktrace and "" or
|
local stacktrace = nostacktrace and "" or
|
||||||
lume.trim((debug.traceback("", 2):gsub("\t", "")))
|
lume.trim((debug.traceback("", 2):gsub("\t", "")))
|
||||||
|
Reference in New Issue
Block a user