Fix the AxisSwap feature - had a double mutex lock, oops.

This commit is contained in:
Henrik Rydgård 2024-04-14 13:43:20 +02:00
parent bfe5ef00a6
commit c7c7e0a36d

View File

@ -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_;