ControllerInterface: Input detection improvements.

This commit is contained in:
Jordan Woyak committed 2019-03-03 18:36:16 -06:00
1 parent 13b2b93d3d
commit 48b69ca018
7 files changed
+90 -60

No files matched your search

@@ -343,7 +343,7 @@ ControlState evdevDevice::Axis::GetState() const
int value = 0;
libevdev_fetch_event_value(m_dev, EV_ABS, m_code, &value);
return std::max(0.0, ControlState(value - m_base) / m_range);
return ControlState(value - m_base) / m_range;
}
evdevDevice::Effect::Effect(int fd) : m_fd(fd)