fayez-nazzal / mouse_position

Rust crate to get mouse position on Linux, MacOS, and Windows.
https://crates.io/crates/mouse_position
MIT License
9 stars 6 forks source link

Are physical position or logical position returned? #2

Open Borber opened 11 months ago

Borber commented 11 months ago

Because the position I use on Windows works fine, but the mouse position on MacOS needs to be calculated to be correct.

https://github.com/Borber/tran/commit/52747179e3c5464345af2fc8ee8bfc072c954943

SergioRibera commented 10 months ago

Hello, I tell you that in the tests I've been doing it seems that it returns the logical position, anyway I commented that I made fork, and I'm adding functions for both cases

fayez-nazzal commented 10 months ago

Sorry for the late reply, I currently have no access to a device with >1 pixel density to test this, thanks @SergioRibera