Skip to content
Permalink
Browse files

Merge pull request #8466 from jordan-woyak/evdev-float

evdev: fix bad integer division.
  • Loading branch information
delroth committed Nov 10, 2019
2 parents df32e3f + 0c57887 commit 499f065b836af6871e204614b030db36963e8198
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
@@ -75,11 +75,11 @@ class AnalogInput : public Input
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;
};

0 comments on commit 499f065

Please sign in to comment.
You can’t perform that action at this time.