Skip to content

Commit

Permalink
Remove some unnecessary state clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Apr 20, 2023
1 parent 7594ae8 commit 4bb7c05
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Core/ControlMapper.cpp
Expand Up @@ -426,11 +426,6 @@ bool ControlMapper::Key(const KeyInput &key, bool *pauseTrigger) {
void ControlMapper::ToggleSwapAxes() {
swapAxes_ = !swapAxes_;

// To avoid stuck keys, just reset it all.
for (auto &mapping : curInput_) {
mapping.second = 0.0f;
}

updatePSPButtons_(0, CTRL_LEFT | CTRL_RIGHT | CTRL_UP | CTRL_DOWN);

for (uint32_t vkey = VIRTKEY_FIRST; vkey < VIRTKEY_LAST; vkey++) {
Expand Down

0 comments on commit 4bb7c05

Please sign in to comment.