()
| 16 | } |
| 17 | impl KeyOutCatcher { |
| 18 | pub fn new() -> KeyOutCatcher { |
| 19 | KeyOutCatcher { |
| 20 | keys_registered: Vec::new(), |
| 21 | reports: Vec::new(), |
| 22 | state: KeyboardState::new(), |
| 23 | later: Vec::new(), |
| 24 | } |
| 25 | } |
| 26 | // for testing, clear the catcher of everything |
| 27 | pub fn clear(&mut self) { |
| 28 | self.keys_registered.clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected