Merge pull request #6 from Ralith/fix-abs-sync
Fix sync of absolute axis states
This commit is contained in:
commit
b8184e919b
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ impl Device {
|
||||||
for idx in 0..0x28 {
|
for idx in 0..0x28 {
|
||||||
let abs = 1 << idx;
|
let abs = 1 << idx;
|
||||||
// ignore multitouch, we'll handle that later.
|
// ignore multitouch, we'll handle that later.
|
||||||
if abs < ABS_MT_SLOT.bits() && self.abs.bits() & abs != 1 {
|
if abs < ABS_MT_SLOT.bits() && self.abs.bits() & abs != 0 {
|
||||||
do_ioctl!(eviocgabs(self.fd, idx as u32, &mut self.state.abs_vals[idx as usize]));
|
do_ioctl!(eviocgabs(self.fd, idx as u32, &mut self.state.abs_vals[idx as usize]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue