#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 108/week @ 2019-10-07 166/week @ 2019-10-14 100/week @ 2019-10-21 166/week @ 2019-10-28 140/week @ 2019-11-04 149/week @ 2019-11-11 125/week @ 2019-11-18 175/week @ 2019-11-25 386/week @ 2019-12-02 750/week @ 2019-12-09 278/week @ 2019-12-16 365/week @ 2019-12-23 718/week @ 2019-12-30 863/week @ 2020-01-06 713/week @ 2020-01-13

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