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::keys;

fn main() {
    println!(
        "{} string keys, {} numeric constants; {} => {}",
        keys::ALL_STRING_KEYS.len(),
        keys::ALL_NUMERIC_CONSTANTS.len(),
        keys::DEVICE_KEY,
        keys::TRANSPORT_KEY,
    );
}