Skip to content

mouse coordinates are always returned as 0 #25

@wintkms

Description

@wintkms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions