Fix ff query

This commit is contained in:
hodasemi 2022-01-30 14:30:43 +01:00
parent 5d0c0beda9
commit 4d2edf8d16

View file

@ -181,7 +181,7 @@ impl RawDevice {
let supported_ff = if ty.contains(EventType::FORCEFEEDBACK) {
let mut ff = AttributeSet::<FFEffect>::new();
unsafe { sys::eviocgbit_misc(file.as_raw_fd(), ff.as_mut_raw_slice())? };
unsafe { sys::eviocgbit_ff(file.as_raw_fd(), ff.as_mut_raw_slice())? };
Some(ff)
} else {
None