Disable analog stick deduplication (#14590)

* Refactor and unify analog input settings

* Disable analog stick deduplication
This commit is contained in:
Yifan Gu
2021-07-08 17:47:38 +02:00
committed by GitHub
parent f7bf15ac4f
commit dea13f7197
-4
View File
@@ -1358,10 +1358,6 @@ static void ConvertAnalogStick(float &x, float &y) {
static bool AnalogStickAxis(const AxisInput &axis) {
static float history[JOYSTICK_AXIS_MAX+1] = { 0.0f };
if (history[axis.axisId] == axis.value) {
return true;
}
history[axis.axisId] = axis.value;
AxisInput axisA = axis;
AxisInput axisB = axis;