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

Method get_key_state

src/raw_stream.rs:459–463  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

457 /// Retrieve the current keypress state directly via kernel syscall.
458 #[inline]
459 pub fn get_key_state(&self) -> io::Result<AttributeSet<KeyCode>> {
460 let mut key_vals = AttributeSet::new();
461 self.update_key_state(&mut key_vals)?;
462 Ok(key_vals)
463 }
464
465 /// Retrieve the current absolute axis state directly via kernel syscall.
466 #[inline]

Callers

nothing calls this directly

Calls 1

update_key_stateMethod · 0.80

Tested by

no test coverage detected