dolphin/Source/Core/InputCommon/ControllerInterface/evdev
Scott Pleb 0bede93daa evdev: Correctly calculate axis range for min values greater than 0.
Axis range was previously calculated as max + abs(min), which relies on the assumption that
min will not exceed 0. For (min, max) values like (0, 255) or (-128, 127), which I assume to
be the most common cases, the range is correctly calculated as 255. However, given (20,
235), the range is erroneously calculated as 255, leading to axis values being normalized
incorrectly.

SDL already handles this case correctly. After changing the range calculation to max - min,
the axis values received from the evdev backend are practically identical to the values
received from the SDL backend.
2017-11-11 02:07:04 -05:00
..
evdev.cpp evdev: Correctly calculate axis range for min values greater than 0. 2017-11-11 02:07:04 -05:00
evdev.h ControllerInterface: replace Reinitialize with RefreshDevices 2016-11-30 16:07:55 -08:00