[BUG]: Mouse lock option not working correctly
Describe the Bug
https://github.com/PCSX2/pcsx2/issues/11902
The mouse cursor is constrained to a box partially outside the main window. The same thing happens in fullscreen and windowed:
https://github.com/user-attachments/assets/0f9c4a9c-90e8-4198-9872-229331f4d671
Reproduction Steps
Was checked on a fresh new portable install, only the mouse lock option was changed.
Expected Behavior
No response
PCSX2 Revision
v2.3.350
Operating System
Windows 10 (64bit)
If Linux - Specify Distro
No response
Logs & Dumps
No response
Can't test this on Linux Wayland as we explicitly do not currently support it there, but @JordanTheToaster on Windows 10 has expressed he was unable to reproduce as of latest nightly.
I just tested it again on a new portable install of v2.3.387, I still get the same issue.
As an update, I've now tested this on a new PC, now Windows 11 with an Nvidia card (previously was 10 / AMD) and the exact same problem remains as of v2.5.225.
I think I have figured it out.
What's the DPI of your monitor(s)?
Do you mean scaling? I have a 4k screen at 150%, I just set it to 100% to check and it worked fine, so that could be the problem.
Yeah, that's the root issue.
I believe I have it fixed on Windows, just need to test Linux a bit more. A fix should be in this week hopefully :)