MCPcopy Create free account
hub / github.com/emberian/evdev / update_scancode

Method update_scancode

src/sync_stream.rs:124–128  ·  view source on GitHub ↗

Update a scancode. The return value is the previous keycode

(&self, keycode: KeyCode, scancode: &[u8])

Source from the content-addressed store, hash-verified

122
123 /// Update a scancode. The return value is the previous keycode
124 pub fn update_scancode(&self, keycode: KeyCode, scancode: &[u8]) -> io::Result<KeyCode> {
125 self.raw
126 .update_scancode(keycode.code() as u32, scancode)
127 .map(|keycode| KeyCode::new(keycode as u16))
128 }
129
130 /// Update a scancode by index. The return value is the previous keycode
131 pub fn update_scancode_by_index(

Callers

nothing calls this directly

Calls 1

codeMethod · 0.45

Tested by

no test coverage detected