[Lua] While mouse grab is false, some mouse related things do not work
Title.
More specifically, KeyDown
and KeyUp
hooks for mouse buttons do not fire, and mouse_t.buttons
does not show mouse button presses.
Try with this example script:
addHook("ThinkFrame", function()
input.setMouseGrab(false)
print(mouse.buttons)
end)
Edited by amperbee