mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
ControllerInterface: Input detection improvements.
This commit is contained in:
parent
13b2b93d3d
commit
48b69ca018
7 changed files with 90 additions and 60 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue