8000 GitHub - justDeeevin/rdevin: Cross-platform simulation and global listening for keyboard and mouse input.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cross-platform simulation and global listening for keyboard and mouse input.

License

Notifications You must be signed in to change notification settings

justDeeevin/rdevin

8000
 
 

Repository files navigation

rdevin

Crate API

Cross-platform simulation and global listening for keyboard and mouse input.

Warning

This crate is subject to extreme change. There is still great room for improvement. It is only presently published for use by NuhxBoard.

Listening for input

The listen and grab 1 functions can be used to run a callback for all input events.

rdevin::listen(|e| dbg!(e))?;

Simulating input

The simulate function can be used to send input events.

use rdevin::{simulate, EventType, Key};

simulate(&EventType::KeyPress(Key::KeyS))?;

Serialization

Serde support is gated behind the serde feature.

Acknowledgements

  • This crate is a fork of a fork of a fork of Narsil's rdev crate, created to ensure continued maintenance and to make Rustdesk's many useful additions available on crates.io.
  • Enigo, an input simulation library, served as inspiration and reference for Narsil's original crate.

Footnotes

  1. Not available on Linux

About

Cross-platform simulation and global listening for keyboard and mouse input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.4%
  • Other 0.6%
0