mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Issue 7968: Added keybinds for increasing, decreasing, and muting audio.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user