10 releases
Uses old Rust 2015
| 0.2.2 | Mar 4, 2025 |
|---|---|
| 0.2.1 | Dec 29, 2019 |
| 0.1.7 | Dec 28, 2019 |
| 0.1.5 | Oct 19, 2018 |
#25 in macOS and iOS APIs
7,489 downloads per month
Used in 45 crates
(3 directly)
8KB
163 lines
readkey
A very small library for finding out if a key is currently pressed on macOS.
Example usage
Check if the Up key is currently pressed:
use readkey::Keycode;
fn main() {
loop {
println!("State of Up key: {}", Keycode::Up.is_pressed());
}
}
Related
readmouse - Read the mouse location on macOS.