evdev: fix bad integer division.

This commit is contained in:
Jordan Woyak 2019-11-10 10:04:13 -06:00
parent 7fa5a95800
commit 0c57887839
1 changed files with 2 additions and 2 deletions

View File

@ -75,11 +75,11 @@ public:
int value = 0;
libevdev_fetch_event_value(m_dev, EV_ABS, m_code, &value);
return ControlState(value - m_base) / m_range;
return (value - m_base) / m_range;
}
protected:
int m_range;
ControlState m_range;
int m_base;
};