medius 3.0.1

Host control library for the medius transparent mouse passthrough box
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Keyboard capabilities: the keyboard half of the unified `RESP(CAPS)` (ยง4.4).

/// A semantic capability summary of the cloned keyboard; the keyboard half of [`Caps`](crate::Caps).
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
pub struct KbdCaps {
    /// Keycode-array slots the report carries, or `0xFF` when the keyboard uses an NKRO bitmap.
    pub n_keys: u8,
    /// Keys are an NKRO bitmap (no rollover limit), rather than a fixed keycode array.
    pub nkro: bool,
    /// A Consumer (media-key) collection is present; media injection/catch is available.
    pub has_consumer: bool,
    /// A System-control collection is present (passthrough-only; not injectable).
    pub has_system: bool,
    /// The keyboard report sits behind a HID report ID.
    pub has_report_id: bool,
}