Events like:
function TopBar:onMouseDown(b, x, y) --added to catch when the user (KINDA) leaves the main window
IsDrag = true
MovUI(TopBar, {left = true})
end
function win:onMouseDown(b, x, y) --added to catch when the user (KINDA) leaves the main window
IsDrag = true
MovUI(TopBar, {left = true})
end
do not seem to register the mouse event when the cursor it outside of the window, this is kinda annoying since the task delay when using sleep(0) or sleep(1), using sleep() in the task results in other tasks being cut-off from execution (meaning tracking cursor movement for canvas is delayed or wont register when out of window for even a ms, resulting in a situation where the user needs to click again, then messing up paint or cursor operations)
Longer story shortened; i cant detect mouse events when out of the window, If they are mouse events they should always fire and then its up to me to defer which window event fired; my suggestion is a module (like the keyboard module) that is able grab what monitor the mouse is on and its position, and button states via events (I did try building luart with a mouse module but im not familiar with c much anymore)