Skip to content

Commit

Permalink
Merge pull request #19059 from hrydgard/fix-axis-swap
Browse files Browse the repository at this point in the history
Fix the AxisSwap feature - had a double mutex lock, oops.
  • Loading branch information
hrydgard committed Apr 14, 2024
2 parents bfe5ef0 + c7c7e0a commit 0aa0543
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 @@ -577,7 +577,7 @@ bool ControlMapper::Key(const KeyInput &key, bool *pauseTrigger) {
}

void ControlMapper::ToggleSwapAxes() {
std::lock_guard<std::mutex> guard(mutex_);
// Note: The lock is already locked here.

swapAxes_ = !swapAxes_;

Expand Down

0 comments on commit 0aa0543

Please sign in to comment.