()
| 37 | |
| 38 | impl 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. |
nothing calls this directly
no outgoing calls
no test coverage detected