Skip to content

Commit

Permalink
Strengthen the axis-threshold reduction for related axes a bit. See #…
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 29, 2024
1 parent f3cf05a commit 1faef37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/ControlMapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1faef37

Please sign in to comment.