(&mut self, repeat: &AutoRepeat)
| 553 | /// Update the auto repeat delays |
| 554 | #[inline] |
| 555 | pub fn update_auto_repeat(&mut self, repeat: &AutoRepeat) -> io::Result<()> { |
| 556 | unsafe { |
| 557 | sys::eviocsrep( |
| 558 | self.as_raw_fd(), |
| 559 | repeat as *const AutoRepeat as *const [u32; 2], |
| 560 | )?; |
| 561 | } |
| 562 | self.auto_repeat = Some(repeat.clone()); |
| 563 | Ok(()) |
| 564 | } |
| 565 | |
| 566 | /// Retrieve the scancode for a keycode, if any |
| 567 | pub fn get_scancode_by_keycode(&self, keycode: u32) -> io::Result<Vec<u8>> { |