makcu 0.3.2

Rust library for controlling MAKCU USB HID interceptor devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::Button;

/// A catch event reported by the `km.catch_m*()` firmware stream.
///
/// Each event corresponds to a single physical press or release of the
/// button that catch was enabled on.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CatchEvent {
    /// Which button produced this event.
    pub button: Button,
    /// `true` for press, `false` for release.
    pub pressed: bool,
}