Update a scancode. The return value is the previous keycode
(&self, keycode: KeyCode, scancode: &[u8])
| 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( |