Strengthen the axis-threshold reduction for related axes a bit. See #17792

This commit is contained in:
Henrik Rydgård
2024-01-29 18:50:08 +01:00
parent f3cf05a80f
commit 1faef374a9
+1 -1
View File
@@ -56,7 +56,7 @@ float ControlMapper::GetDeviceAxisThreshold(int device, const InputMapping &mapp
float absCoValue = fabsf(rawAxisValue_[(int)coAxis]);
if (absCoValue > 0.0f) {
// Bias down the threshold if the other axis is active.
float biasedThreshold = AXIS_BIND_THRESHOLD * (1.0f - absCoValue * 0.2f);
float biasedThreshold = AXIS_BIND_THRESHOLD * (1.0f - absCoValue * 0.35f);
// INFO_LOG(SYSTEM, "coValue: %f threshold: %f", absCoValue, biasedThreshold);
return biasedThreshold;
}