From c7c7e0a36d02db8461b5e8e596e7afd901cc0b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 14 Apr 2024 13:43:20 +0200 Subject: [PATCH] Fix the AxisSwap feature - had a double mutex lock, oops. --- Core/ControlMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/ControlMapper.cpp b/Core/ControlMapper.cpp index 94765edd64..8be39420d4 100644 --- a/Core/ControlMapper.cpp +++ b/Core/ControlMapper.cpp @@ -577,7 +577,7 @@ bool ControlMapper::Key(const KeyInput &key, bool *pauseTrigger) { } void ControlMapper::ToggleSwapAxes() { - std::lock_guard guard(mutex_); + // Note: The lock is already locked here. swapAxes_ = !swapAxes_;