MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / new

Method new

crates/virtual-machine/src/devices/keyboard.rs:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38impl Keyboard {
39 pub fn new() -> Self {
40 Self {
41 queue: std::collections::VecDeque::new(),
42 }
43 }
44
45 /// Push a key event from the host, truncating `scancode` to 16 bits. Events
46 /// drop when the queue is full so a stalled guest cannot leak host memory.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected