Skip to content

Commit

Permalink
Toggle mute button
Browse files Browse the repository at this point in the history
  • Loading branch information
iota97 committed Feb 25, 2020
1 parent f0b7430 commit f47ac2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Common/KeyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ const KeyMap_IntStrPair psp_button_names[] = {
{VIRTKEY_TEXTURE_DUMP, "Texture Dumping"},
{VIRTKEY_TEXTURE_REPLACE, "Texture Replacement"},
{VIRTKEY_SCREENSHOT, "Screenshot"},
{VIRTKEY_MUTE_TOGGLE, "Mute toggle"},

{CTRL_HOME, "Home"},
{CTRL_HOLD, "Hold"},
Expand Down
1 change: 1 addition & 0 deletions Common/KeyMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ enum {
VIRTKEY_TEXTURE_DUMP = 0x40000019,
VIRTKEY_TEXTURE_REPLACE = 0x4000001A,
VIRTKEY_SCREENSHOT = 0x4000001B,
VIRTKEY_MUTE_TOGGLE = 0x4000001C,
VIRTKEY_LAST,
VIRTKEY_COUNT = VIRTKEY_LAST - VIRTKEY_FIRST
};
Expand Down
3 changes: 3 additions & 0 deletions UI/EmuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
case VIRTKEY_RAPID_FIRE:
__CtrlSetRapidFire(true);
break;
case VIRTKEY_MUTE_TOGGLE:
g_Config.bEnableSound = !g_Config.bEnableSound;
break;
}
}

Expand Down

0 comments on commit f47ac2e

Please sign in to comment.