Fix ff query
This commit is contained in:
parent
5d0c0beda9
commit
4d2edf8d16
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ impl RawDevice {
|
||||||
|
|
||||||
let supported_ff = if ty.contains(EventType::FORCEFEEDBACK) {
|
let supported_ff = if ty.contains(EventType::FORCEFEEDBACK) {
|
||||||
let mut ff = AttributeSet::<FFEffect>::new();
|
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)
|
Some(ff)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue