mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
HotkeyManager: Add HK_TOGGLE_WII_SPEAK_MUTE
This commit is contained in:
parent
4efbd35a5e
commit
eff334524a
7 changed files with 35 additions and 9 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue