MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / new

Method new

src/lib.rs:44–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43impl 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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected