Remove some logic that did not do the right thing

This commit is contained in:
Henrik Rydgård 2023-05-02 23:51:40 +02:00
parent c037f6731d
commit b0d05a5a7c

View file

@ -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);
}
}