diff options
| author | FL.dolphinemu <FL.dolphinemu@gmail.com> | 2014-12-28 22:03:21 +0100 |
|---|---|---|
| committer | FL.dolphinemu <FL.dolphinemu@gmail.com> | 2014-12-28 22:03:21 +0100 |
| commit | 78f8bf7423b047e31cbc22a86001206906f5dc98 (patch) | |
| tree | c7086241d6af1f27674f18d8141a7dfb145a2ffa /Source/Core/DolphinWX/Frame.cpp | |
| parent | 9465a877f8e896463b9f43f94016d89019d1d5d5 (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.cpp | 8 |
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; |
