#key #find #macos #out

readkey

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

9 releases

Uses old Rust 2015

0.2.1 Dec 29, 2019
0.1.7 Dec 28, 2019
0.1.5 Oct 19, 2018

#87 in macOS APIs

Download history 771/week @ 2020-05-26 638/week @ 2020-06-02 858/week @ 2020-06-09 826/week @ 2020-06-16 985/week @ 2020-06-23 1290/week @ 2020-06-30 856/week @ 2020-07-07 1333/week @ 2020-07-14 988/week @ 2020-07-21 448/week @ 2020-07-28 246/week @ 2020-08-04 666/week @ 2020-08-11 317/week @ 2020-08-18 613/week @ 2020-08-25 425/week @ 2020-09-01 274/week @ 2020-09-08

2,743 downloads per month
Used in 7 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