Skip to content
Permalink
Browse files

evdev: fix bad integer division.

  • Loading branch information
jordan-woyak committed Nov 10, 2019
1 parent 7fa5a95 commit 0c57887839474c9f78fa9ada252fafb6ee3e5de9
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 0c57887

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