Merge pull request #10002 from OatmealDome/macos-nunchuk-shake

Nunchuk: Use correct middle click expression on macOS
This commit is contained in:
Tilka 2021-08-06 22:05:43 +01:00 committed by GitHub
commit ac6d008008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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