MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / Keyboard

Class Keyboard

src/lib.rs:105–110  ·  view source on GitHub ↗

the main keyboard struct add handlers wit add_handler, then call add_keypress/add_key_release/add_timeout to start processing keys.

Source from the content-addressed store, hash-verified

103/// then call add_keypress/add_key_release/add_timeout
104/// to start processing keys.
105pub struct Keyboard<'a, T: USBKeyOut> {
106 events: Vec<(Event, EventStatus)>,
107 running_number: u8,
108 handlers: Vec<Box<dyn ProcessKeys<T> + Send + 'a>>,
109 pub output: T,
110}
111#[allow(clippy::new_without_default)]
112impl<'a, T: USBKeyOut> Keyboard<'a, T> {
113 pub fn new(output: T) -> Keyboard<'a, T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected