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

Method keyboard_push

crates/virtual-machine/src/bus.rs:258–260  ·  view source on GitHub ↗

Push a key event from the host GUI into the keyboard device.

(&mut self, scancode: u16, pressed: bool)

Source from the content-addressed store, hash-verified

256 /// Capture the architectural RAM image (RAM overlaid with dirty cache lines).
257 pub fn ram_image(&self) -> Vec<u8> {
258 let mut buf = vec![0u8; self.l1_cache.ram_len()];
259 self.l1_cache.write_image_into(&mut buf);
260 buf
261 }
262
263 /// Replace RAM with `bytes` and drop every cached line cold (no writeback).

Calls 1

push_eventMethod · 0.80