Crates.io | readkey |
lib.rs | readkey |
version | 0.2.1 |
source | src |
created_at | 2018-10-18 19:32:51.496666 |
updated_at | 2019-12-29 16:42:11.593227 |
description | A very small library for finding out if a key is currently pressed on macOS. |
homepage | https://github.com/segeljakt/readkey |
repository | https://github.com/segeljakt/readkey |
max_upload_size | |
id | 91395 |
size | 7,774 |
A very small library for finding out if a key is currently pressed on macOS.
Check if the Up
key is currently pressed:
use readkey::Keycode;
fn main() {
loop {
println!("State of Up key: {}", Keycode::Up.is_pressed());
}
}
readmouse - Read the mouse location on macOS.