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

Class KeyOutCatcher

src/test_helpers.rs:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9use spin::RwLock;
10#[derive(Default)]
11pub struct KeyOutCatcher {
12 keys_registered: Vec<u8>,
13 pub reports: Vec<Vec<u8>>,
14 state: KeyboardState,
15 later: Vec<(u32, Vec<KeyCode>)>,
16}
17impl KeyOutCatcher {
18 pub fn new() -> KeyOutCatcher {
19 KeyOutCatcher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected