From b0d05a5a7cd18d3a079c86fd63921031accd70f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 2 May 2023 23:51:40 +0200 Subject: [PATCH] Remove some logic that did not do the right thing --- Core/ControlMapper.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Core/ControlMapper.cpp b/Core/ControlMapper.cpp index 3b791310b8..49f3d0c3e3 100644 --- a/Core/ControlMapper.cpp +++ b/Core/ControlMapper.cpp @@ -158,12 +158,8 @@ void ControlMapper::ForceReleaseVKey(int vkey) { if (KeyMap::InputMappingsFromPspButton(vkey, &multiMappings, true)) { for (const auto &entry : multiMappings) { for (const auto &mapping : entry.mappings) { - int direction = 0; - if (mapping.IsAxis() && IsSignedAxis(mapping.Axis(&direction))) { - curInput_[mapping] = direction == -1 ? -1 : 1; - } else { - curInput_[mapping] = 0.0f; - } + curInput_[mapping] = 0.0f; + // Different logic for signed axes? UpdatePSPState(mapping); } }