One more of my simple problems : I can't find how to detect when the cursor leaves the game window.
I tried checking the Mouse position according to a layer's Viewports, but it'll work only when the game has black bars on its side because it's rescaled. When the cursor is simply outside the game's area at all (for instance when it's over the elements of the debugger, or the caption of window, etc.), the Mouse coordinates are not detected anymore from what I can see in the debugger.
(.capx file attached)