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.
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)
Looks like I’ll have to convert the mouse position.
Oddly though, I have it currently set to GraphicsAdapter.DefaultAdapter.CurrentDisplayMode .Width/Height, but for some reason the fullscreen mode still looks bordered - it doesn’t reach the sides of the screen at all. Is there a reason for that?
I’m not sure, I’ve actually never experienced that one myself. I’ve seen issues where a window that’s a larger size than the desktop it’s placed on reports incorrect mouse positions, but I think that’s an issue somewhere in the Windows API because a product I used to work on that was built in the 90’s had the same issue.