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

Method update_auto_repeat

src/raw_stream.rs:555–564  ·  view source on GitHub ↗
(&mut self, repeat: &AutoRepeat)

Source from the content-addressed store, hash-verified

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>> {

Callers

nothing calls this directly

Calls 2

as_raw_fdMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected