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

Method update_key_state

src/raw_stream.rs:505–508  ·  view source on GitHub ↗
(&self, key_vals: &mut AttributeSet<KeyCode>)

Source from the content-addressed store, hash-verified

503 /// [`get_key_state`](Self::get_key_state) instead.
504 #[inline]
505 pub fn update_key_state(&self, key_vals: &mut AttributeSet<KeyCode>) -> io::Result<()> {
506 unsafe { sys::eviocgkey(self.as_raw_fd(), key_vals.as_mut_raw_slice())? };
507 Ok(())
508 }
509
510 /// Fetch the current kernel absolute axis state directly into the provided buffer.
511 /// If you don't already have a buffer, you probably want

Callers 2

get_key_stateMethod · 0.80
sync_stateMethod · 0.80

Calls 2

as_mut_raw_sliceMethod · 0.80
as_raw_fdMethod · 0.45

Tested by

no test coverage detected