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

Method update

src/lib.rs:584–591  ·  view source on GitHub ↗

Updates the force feedback effect.

(&mut self, data: FFEffectData)

Source from the content-addressed store, hash-verified

582
583 /// Updates the force feedback effect.
584 pub fn update(&mut self, data: FFEffectData) -> io::Result<()> {
585 let mut effect: sys::ff_effect = data.into();
586 effect.id = self.id as i16;
587
588 unsafe { sys::eviocsff(self.fd.as_raw_fd(), &effect)? };
589
590 Ok(())
591 }
592}
593
594impl Drop for FFEffect {

Callers

nothing calls this directly

Calls 1

as_raw_fdMethod · 0.45

Tested by

no test coverage detected