#key #find #macos #out

readkey

A very small library for finding out if a key is currently pressed on macOS

9 releases

0.2.1 Dec 29, 2019
0.1.7 Dec 28, 2019
0.1.5 Oct 19, 2018
Download history 160/week @ 2019-11-01 125/week @ 2019-11-08 163/week @ 2019-11-15 160/week @ 2019-11-22 201/week @ 2019-11-29 440/week @ 2019-12-06 790/week @ 2019-12-13 151/week @ 2019-12-20 762/week @ 2019-12-27 598/week @ 2020-01-03 1043/week @ 2020-01-10 1260/week @ 2020-01-17 1430/week @ 2020-01-24 707/week @ 2020-01-31 569/week @ 2020-02-07

1,005 downloads per month
Used in 5 crates (2 directly)

MIT license

6KB
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.

No runtime deps