mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
HotkeyManager: Add HK_TOGGLE_WII_SPEAK_MUTE
This commit is contained in:
@ -296,6 +296,15 @@ void HotkeyScheduler::Run()
|
||||
Settings::Instance().SetUSBKeyboardConnected(
|
||||
!Settings::Instance().IsUSBKeyboardConnected());
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_TOGGLE_WII_SPEAK_MUTE))
|
||||
{
|
||||
const bool muted = !Settings::Instance().IsWiiSpeakMuted();
|
||||
Settings::Instance().SetWiiSpeakMuted(muted);
|
||||
// i18n: Wii Speak (un)muted notification message
|
||||
const QString msg = tr("Wii Speak %1").arg(muted ? tr("muted") : tr("unmuted"));
|
||||
OSD::AddMessage(msg.toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_PREV_WIIMOTE_PROFILE_1))
|
||||
|
Reference in New Issue
Block a user