Skip to content

Commit 0aa0543

Browse files
authored
Merge pull request #19059 from hrydgard/fix-axis-swap
Fix the AxisSwap feature - had a double mutex lock, oops.
2 parents bfe5ef0 + c7c7e0a commit 0aa0543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/ControlMapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ bool ControlMapper::Key(const KeyInput &key, bool *pauseTrigger) {
577577
}
578578

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

582582
swapAxes_ = !swapAxes_;
583583

0 commit comments

Comments
 (0)