mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Add OSD message for Volume Hotkeys
This pr adds an OnScreenDisplay message when you use the Volume hotkeys. Just to have visual feedback.
This commit is contained in:
@ -1324,12 +1324,6 @@ void CFrame::ParseHotkeys()
|
||||
Core::SaveScreenShot();
|
||||
if (IsHotkey(HK_EXIT))
|
||||
wxPostEvent(this, wxCommandEvent(wxEVT_MENU, wxID_EXIT));
|
||||
if (IsHotkey(HK_VOLUME_DOWN))
|
||||
AudioCommon::DecreaseVolume(3);
|
||||
if (IsHotkey(HK_VOLUME_UP))
|
||||
AudioCommon::IncreaseVolume(3);
|
||||
if (IsHotkey(HK_VOLUME_TOGGLE_MUTE))
|
||||
AudioCommon::ToggleMuteVolume();
|
||||
|
||||
if (SConfig::GetInstance().m_bt_passthrough_enabled)
|
||||
{
|
||||
@ -1423,6 +1417,24 @@ void CFrame::ParseHotkeys()
|
||||
g_renderer->ShowOSDMessage(message);
|
||||
};
|
||||
|
||||
if (IsHotkey(HK_VOLUME_DOWN))
|
||||
{
|
||||
show_msg(OSDMessage::VolumeChanged);
|
||||
AudioCommon::DecreaseVolume(3);
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_VOLUME_UP))
|
||||
{
|
||||
show_msg(OSDMessage::VolumeChanged);
|
||||
AudioCommon::IncreaseVolume(3);
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_VOLUME_TOGGLE_MUTE))
|
||||
{
|
||||
show_msg(OSDMessage::VolumeChanged);
|
||||
AudioCommon::ToggleMuteVolume();
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_INCREASE_IR))
|
||||
{
|
||||
show_msg(OSDMessage::IRChanged);
|
||||
|
Reference in New Issue
Block a user