9 releases
Uses old Rust 2015
0.2.1 | Dec 29, 2019 |
---|---|
0.1.7 | Dec 28, 2019 |
0.1.5 | Oct 19, 2018 |
#60 in macOS and iOS APIs
2,222 downloads per month
Used in 34 crates
(3 directly)
7KB
142 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.