mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
evdev: fix bad integer division.
This commit is contained in:
parent
7fa5a95800
commit
0c57887839
@ -75,11 +75,11 @@ public:
|
|||||||
int value = 0;
|
int value = 0;
|
||||||
libevdev_fetch_event_value(m_dev, EV_ABS, m_code, &value);
|
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:
|
protected:
|
||||||
int m_range;
|
ControlState m_range;
|
||||||
int m_base;
|
int m_base;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user