Issue 7968: Added keybinds for increasing, decreasing, and muting audio.

This commit is contained in:
FL.dolphinemu
2014-12-28 22:03:21 +01:00
parent 9465a877f8
commit 78f8bf7423
7 changed files with 60 additions and 1 deletions

View File

@ -64,6 +64,8 @@
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/VideoConfig.h"
#include "AudioCommon/AudioCommon.h"
// Resources
extern "C" {
@ -1059,6 +1061,12 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
Core::SaveScreenShot();
else if (IsHotkey(event, HK_EXIT))
wxPostEvent(this, wxCommandEvent(wxID_EXIT));
else if (IsHotkey(event, HK_VOLUME_UP))
AudioCommon::IncreaseVolume(3);
else if (IsHotkey(event, HK_VOLUME_DOWN))
AudioCommon::DecreaseVolume(3);
else if (IsHotkey(event, HK_VOLUME_TOGGLE_MUTE))
AudioCommon::ToggleMuteVolume();
// Wiimote connect and disconnect hotkeys
else if (IsHotkey(event, HK_WIIMOTE1_CONNECT))
WiimoteId = 0;