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

Method grab

src/raw_stream.rs:645–653  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

643 }
644
645 pub fn grab(&mut self) -> io::Result<()> {
646 if !self.grabbed {
647 unsafe {
648 sys::eviocgrab(self.as_raw_fd(), 1)?;
649 }
650 self.grabbed = true;
651 }
652 Ok(())
653 }
654
655 pub fn ungrab(&mut self) -> io::Result<()> {
656 if self.grabbed {

Callers 1

get_test_deviceFunction · 0.45

Calls 1

as_raw_fdMethod · 0.45

Tested by

no test coverage detected