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

Method get_scancode_by_keycode

src/sync_stream.rs:114–116  ·  view source on GitHub ↗

Retrieve the scancode for a keycode, if any

(&self, keycode: KeyCode)

Source from the content-addressed store, hash-verified

112
113 /// Retrieve the scancode for a keycode, if any
114 pub fn get_scancode_by_keycode(&self, keycode: KeyCode) -> io::Result<Vec<u8>> {
115 self.raw.get_scancode_by_keycode(keycode.code() as u32)
116 }
117
118 /// Retrieve the keycode and scancode by index, starting at 0
119 pub fn get_scancode_by_index(&self, index: u16) -> io::Result<(u32, Vec<u8>)> {

Callers

nothing calls this directly

Calls 1

codeMethod · 0.45

Tested by

no test coverage detected