I have an overlay that is positioned at the top right of the game screen.
When the user mouses over an element in this overlay, a tooltip is displayed after a short while, and the display is canceled if the mouse leaves the element.
This works well if the mouse leaves the element and stays in game. However, if it directly goes outside the game window (which is possible because the overlay is positioned at the top right), no event is fired.
Is there a way to cleanly know if the mouse leaves the game window altogether?