Skip to content

Commit c2d7f66

Browse files
committed
Fix smooth axis problem
1 parent 869b2dd commit c2d7f66

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/joypad-config.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,10 @@ std::vector<JoypadBinding> JoypadConfigStore::FindMatchingBindings(const JoypadE
927927
double intensity = std::clamp(abs_value, 0.0, 1.0);
928928
binding.volume_value = std::fabs(binding.volume_value) * intensity * sign;
929929
}
930-
if (binding.axis_interval_ms > 0) {
930+
const bool is_continuous_axis_action =
931+
(binding.action == JoypadActionType::SetSourceVolumePercent) ||
932+
(binding.action == JoypadActionType::AdjustSourceVolume);
933+
if (!is_continuous_axis_action && binding.axis_interval_ms > 0) {
931934
std::string interval_key;
932935
if (binding.uid > 0) {
933936
interval_key = std::to_string((long long)binding.uid);

0 commit comments

Comments
 (0)