-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mouse hint to README-highdpi.md #10083
base: main
Are you sure you want to change the base?
Conversation
This hint isn't actually relevant for display scaling handling. There's a FIXME in WIN_SetEnhancedMouseScale() wondering if we need do anything for displays with different DPI and/or display scale. |
What unit is SDL's internal mouse position in, Pixel or points? This needs to be clarified because either SDL's mouse scaling is not faithful due to not matching the OS's DPI scaling, or the motion matches OS but the reported units are mismatched due to DPI scaling. |
They're in window coordinates, which are pixels on Windows and Linux, and points on macOS. |
I think that's a point worth clarifying in this specific README.. I'll think about how to reword it. |
Is my understanding in the following table correct?
|
These are going to vary between macOS and Windows, because they treat high DPI differently. macOS uses virtualized points for the window coordinates and Windows uses pixels. Here's an updated table for Windows, which doesn't distinguish between default and high density (using SDL's default behavior)
Here's an updated table for macOS, where the High Density entries are for windows on a 2x display and created with the
Here is a correction as well:
|
By the way, I appreciate your willingness to learn how this all works. |
Thanks, really appreciate your patience bearing with me. I’ll incorporate the examples as well as think about how to phrase them unambiguously. |
I tried to interpret the interfaces in terms of advisory factors with respect to memory pixels or native units, please let me know if there are any misunderstandings in what I wrote. |
I have some questions and clarification here. I'll come back to this when I have more time. |
Closes #10074