global-mousemove

Crates.ioglobal-mousemove
lib.rsglobal-mousemove
version0.1.1
created_at2025-11-12 06:02:49.413234+00
updated_at2025-11-12 06:38:41.733296+00
descriptionA minimal library to listen for global mousemove events.
homepagehttps://github.com/deskulpt-apps/global-mousemove
repositoryhttps://github.com/deskulpt-apps/global-mousemove
max_upload_size
id1928860
size25,312
Yao Xiao (Charlie-XIAO)

documentation

https://docs.rs/global-mousemove

README

global-mousemove

license crates.io crates.io docs.rs ci

A minimal library to listen for global mousemove events. Supports Linux (X11), macOS, and Windows.

Install

Add the following to your Cargo.toml:

[dependencies]
global-mousemove = "0.1.1"

Usage

Listen for global mousemove events and print out the coordinates:

let _ = global_mousemove::listen(|event| {
    println!("Mouse: ({}, {})", event.x, event.y,);
});

See more information in the documentation. See more examples in the examples/ directory.

Contributing

Feel free to open issues to report bugs or request features and improvements. Pull requests are also welcome, though for larger changes it would be generally better to open an issue for discussion first.

License

Copyright (c) 2025 The Deskulpt Development Team; this project is released under the MIT License.

Attribution

This library is inspired by rdev. Please check it out if you need to listen fr other types of global input events, simulate input events, or need more advanced features.

Commit count: 0

cargo fmt