()
| 42 | } |
| 43 | impl KeyboardState { |
| 44 | pub fn new() -> KeyboardState { |
| 45 | KeyboardState { |
| 46 | unicode_mode: UnicodeSendMode::Linux, |
| 47 | modifiers_and_enabled_handlers: sbvec![false; KEYBOARD_STATE_RESERVED_BITS], |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | pub fn modifier(&self, modifier: Modifier) -> bool { |
| 52 | self.modifiers_and_enabled_handlers[modifier as usize] |
nothing calls this directly
no outgoing calls
no test coverage detected