Retrieve the scancode for a keycode, if any
(&self, keycode: KeyCode)
| 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>)> { |