iohidmanager 0.10.4

Safe Rust bindings for Apple's IOKit HID — enumerate, inspect, and subscribe to HID devices on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
use iohidmanager::usage;

fn main() {
    println!(
        "{} usage constants; generic desktop page={} keyboard={} mouse={}",
        usage::ALL_USAGE_CONSTANTS.len(),
        usage::PAGE_GENERIC_DESKTOP,
        usage::USAGE_KEYBOARD,
        usage::USAGE_MOUSE,
    );
}