mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 18:40:54 +01:00
0bede93daa
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. |
||
---|---|---|
.. | ||
ControllerEmu | ||
ControllerInterface | ||
ControlReference | ||
CMakeLists.txt | ||
GCAdapter_Android.cpp | ||
GCAdapter.cpp | ||
GCAdapter.h | ||
GCPadStatus.h | ||
InputCommon.vcxproj | ||
InputCommon.vcxproj.filters | ||
InputConfig.cpp | ||
InputConfig.h | ||
KeyboardStatus.h |