summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorFL.dolphinemu <FL.dolphinemu@gmail.com>2014-12-28 22:03:21 +0100
committerFL.dolphinemu <FL.dolphinemu@gmail.com>2014-12-28 22:03:21 +0100
commit78f8bf7423b047e31cbc22a86001206906f5dc98 (patch)
treec7086241d6af1f27674f18d8141a7dfb145a2ffa /Source/Core/DolphinWX/Frame.cpp
parent9465a877f8e896463b9f43f94016d89019d1d5d5 (diff)
Issue 7968: Added keybinds for increasing, decreasing, and muting audio.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 8c5b2c247d..cc205ecbf8 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -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;