Full Screen Visible Mouse Coordinates off.

When I use full screen mode, my visible mouse coordinates are inaccurate.
I’m using Myra for my UI. Basically when I hover over the play button on my menu, it’s showing the button below highlighted in its hover colour.

Outside of full screen mode, I don’t have this issue.

How do I fix this?

Does your game’s screen resolution match your desktop resolution? If not, you’ll have to convert the mouse position to your game’s world scale.

In Hardare Fullscreen Mode (there is a flag for that) the games resolution should match the mouse resolution.

Everything else - being either windowed or non-hardware fullscreen (which is a borderless window then) - will report mouse coordinates in your Desktops Resolution and - as mentioned above - the UI Handler has to scale that to the resolution the UI is running on.

Or you Input Handler in case you do some scaling on your own.

Can’t tell about Myra and how it’s handled there as I use my own UI - wonder a bit, that it’s not handling it out of the box tho, as it should’ve all information available (except you do your own scaling on top)