keytap 0.4.0

Cross-platform, observe-only global keyboard taps with left/right modifier fidelity and clean shutdown
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! macOS backend — CGEventTap on a dedicated CFRunLoop thread.

mod keycodes;

use crossbeam_channel::Sender;

use crate::{Error, Event, tap::TapBuilder};

pub(crate) use self::tap::ShutdownGuard;

mod tap;

pub(crate) fn start(tx: Sender<Event>, cfg: &TapBuilder) -> Result<ShutdownGuard, Error> {
    tap::start(tx, cfg)
}