Merge pull request #6 from Ralith/fix-abs-sync

Fix sync of absolute axis states
This commit is contained in:
Corey Richardson 2017-05-30 22:51:08 -04:00 committed by GitHub
commit b8184e919b

View file

@ -800,7 +800,7 @@ impl Device {
for idx in 0..0x28 {
let abs = 1 << idx;
// 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]));
}
}