From fc4f6bb9b0783dd7f29357c3411b63680671c6f6 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Fri, 6 Aug 2021 16:47:29 -0400 Subject: [PATCH] Nunchuk: Use correct middle click expression on macOS --- Source/Core/Core/HW/WiimoteEmu/Extension/Nunchuk.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Extension/Nunchuk.cpp b/Source/Core/Core/HW/WiimoteEmu/Extension/Nunchuk.cpp index 0f1d60c307..5e7f7425a8 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Extension/Nunchuk.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Extension/Nunchuk.cpp @@ -208,6 +208,12 @@ void Nunchuk::LoadDefaults(const ControllerInterface& ciface) // Shake for (int i = 0; i < 3; ++i) - m_shake->SetControlExpression(i, "Click 2"); + { +#ifdef __APPLE__ + m_shake->SetControlExpression(i, "`Middle Click`"); +#else + m_shake->SetControlExpression(i, "`Click 2`"); +#endif + } } } // namespace WiimoteEmu