When building in release mode, the mouse coordinates are always returned as 0.
Could this be due to optimization?
OS: Windows
|
pub fn get_position(&self) -> Result<Point, Box<dyn std::error::Error>> { |
Setting 👇
[profile.release]
opt-level = 0
in Cargo.toml resolves the issue.