{"id":19846624,"url":"https://github.com/fayez-nazzal/mouse_position","last_synced_at":"2025-07-01T09:36:38.751Z","repository":{"id":64840779,"uuid":"577625178","full_name":"fayez-nazzal/mouse_position","owner":"fayez-nazzal","description":"Rust crate to get mouse position on Linux, MacOS, and Windows.","archived":false,"fork":false,"pushed_at":"2024-05-31T12:42:34.000Z","size":19,"stargazers_count":9,"open_issues_count":5,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T18:37:21.746Z","etag":null,"topics":["crate","linux","macos","mouse","position","rust","windows"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/mouse_position","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fayez-nazzal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-13T06:44:21.000Z","updated_at":"2024-10-08T14:19:01.000Z","dependencies_parsed_at":"2024-05-31T14:12:44.965Z","dependency_job_id":null,"html_url":"https://github.com/fayez-nazzal/mouse_position","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.375,"last_synced_commit":"40586628508dda740fcd6361910edd1d5c6a6c6a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fayez-nazzal/mouse_position","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fayez-nazzal%2Fmouse_position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fayez-nazzal%2Fmouse_position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fayez-nazzal%2Fmouse_position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fayez-nazzal%2Fmouse_position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fayez-nazzal","download_url":"https://codeload.github.com/fayez-nazzal/mouse_position/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fayez-nazzal%2Fmouse_position/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262937212,"owners_count":23387540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crate","linux","macos","mouse","position","rust","windows"],"created_at":"2024-11-12T13:12:00.746Z","updated_at":"2025-07-01T09:36:38.398Z","avatar_url":"https://github.com/fayez-nazzal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mouse Position\n\nA simple crate to get the mouse position in a cross platform way.\nIt uses winapi crate to get the mouse position on windows, x11-dl for linux, and core-graphics for macos.\n\n## Example Usage:\n\n```rust\nuse mouse_position::mouse_position::{Mouse};\n\nfn main() {\n    let position = Mouse::get_mouse_position();\n    match position {\n        Mouse::Position { x, y } =\u003e println!(\"x: {}, y: {}\", x, y),\n        Mouse::Error =\u003e println!(\"Error getting mouse position\"),\n   }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffayez-nazzal%2Fmouse_position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffayez-nazzal%2Fmouse_position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffayez-nazzal%2Fmouse_position/lists"}