throw away unhandled key events
(&mut self)
| 186 | } |
| 187 | //throw away unhandled key events |
| 188 | pub fn clear_unhandled(&mut self) { |
| 189 | self.events |
| 190 | .drain_filter(|(_event, status)| (EventStatus::Unhandled == *status)); |
| 191 | } |
| 192 | /// add a KeyPress event |
| 193 | pub fn add_keypress<X: AcceptsKeycode>(&mut self, keycode: X, ms_since_last: u16) { |
| 194 | let e = Key { |
nothing calls this directly
no outgoing calls
no test coverage detected